aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/setuptools
diff options
context:
space:
mode:
authordvshkurko <dvshkurko@yandex-team.ru>2022-02-10 16:45:51 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:51 +0300
commit321ee9bce31ec6e238be26dbcbe539cffa2c3309 (patch)
tree14407a2757cbf29eb97e266b7f07e851f971000c /contrib/python/setuptools
parent2f6ca198245aeffd5e2d82b65927c2465b68b4f5 (diff)
downloadydb-321ee9bce31ec6e238be26dbcbe539cffa2c3309.tar.gz
Restoring authorship annotation for <dvshkurko@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/python/setuptools')
-rw-r--r--contrib/python/setuptools/py2/pkg_resources/__init__.py10
-rw-r--r--contrib/python/setuptools/py3/pkg_resources/__init__.py8
2 files changed, 9 insertions, 9 deletions
diff --git a/contrib/python/setuptools/py2/pkg_resources/__init__.py b/contrib/python/setuptools/py2/pkg_resources/__init__.py
index 649a2ce651..c44ac12129 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__(
diff --git a/contrib/python/setuptools/py3/pkg_resources/__init__.py b/contrib/python/setuptools/py3/pkg_resources/__init__.py
index 6b947a49a7..43b2459c60 100644
--- a/contrib/python/setuptools/py3/pkg_resources/__init__.py
+++ b/contrib/python/setuptools/py3/pkg_resources/__init__.py
@@ -3283,16 +3283,16 @@ 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 []
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__(