diff options
author | dvshkurko <dvshkurko@yandex-team.ru> | 2022-02-10 16:45:52 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:52 +0300 |
commit | c768a99151e47c3a4bb7b92c514d256abd301c4d (patch) | |
tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /contrib/python/setuptools/py2 | |
parent | 321ee9bce31ec6e238be26dbcbe539cffa2c3309 (diff) | |
download | ydb-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__.py | 10 |
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__( |