diff options
author | dvshkurko <dvshkurko@yandex-team.ru> | 2022-02-10 16:45:51 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:51 +0300 |
commit | 321ee9bce31ec6e238be26dbcbe539cffa2c3309 (patch) | |
tree | 14407a2757cbf29eb97e266b7f07e851f971000c /contrib/python/setuptools | |
parent | 2f6ca198245aeffd5e2d82b65927c2465b68b4f5 (diff) | |
download | ydb-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__.py | 10 | ||||
-rw-r--r-- | contrib/python/setuptools/py3/pkg_resources/__init__.py | 8 |
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__( |