aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/setuptools/py2
diff options
context:
space:
mode:
authordvshkurko <dvshkurko@yandex-team.ru>2022-02-10 16:45:52 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:52 +0300
commitc768a99151e47c3a4bb7b92c514d256abd301c4d (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /contrib/python/setuptools/py2
parent321ee9bce31ec6e238be26dbcbe539cffa2c3309 (diff)
downloadydb-c768a99151e47c3a4bb7b92c514d256abd301c4d.tar.gz
Restoring authorship annotation for <dvshkurko@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/python/setuptools/py2')
-rw-r--r--contrib/python/setuptools/py2/pkg_resources/__init__.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/python/setuptools/py2/pkg_resources/__init__.py b/contrib/python/setuptools/py2/pkg_resources/__init__.py
index c44ac12129..649a2ce651 100644
--- a/contrib/python/setuptools/py2/pkg_resources/__init__.py
+++ b/contrib/python/setuptools/py2/pkg_resources/__init__.py
@@ -3278,19 +3278,19 @@ class ResProvider(EmptyProvider):
path = os.path.normpath(path)
return self._resource_fs.get(path)
- def _listdir(self, path):
+ def _listdir(self, path):
result = self.__lookup(path)
if result is None:
return []
if isinstance(path, six.text_type) and six.PY2:
return [key.decode('utf-8') for key in result]
- else:
+ else:
return list(result)
- def _isdir(self, path):
+ def _isdir(self, path):
return bool(self.__lookup(path))
-
-
+
+
class ResDistribution(DistInfoDistribution):
def __init__(self, prefix):
super(ResDistribution, self).__init__(