diff options
author | torkve <torkve@yandex-team.ru> | 2022-02-10 16:48:23 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:48:23 +0300 |
commit | f9cfbeee51d5849127bb58793a2edcdfd7bb91bb (patch) | |
tree | f7c863cfcc3f1cb6de7f77e11fec2ae60868c8fb /contrib/python/setuptools/py3/pkg_resources/__init__.py | |
parent | 5eefa17021221fd267f1dd5f9d63d2493d131a8a (diff) | |
download | ydb-f9cfbeee51d5849127bb58793a2edcdfd7bb91bb.tar.gz |
Restoring authorship annotation for <torkve@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/python/setuptools/py3/pkg_resources/__init__.py')
-rw-r--r-- | contrib/python/setuptools/py3/pkg_resources/__init__.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/contrib/python/setuptools/py3/pkg_resources/__init__.py b/contrib/python/setuptools/py3/pkg_resources/__init__.py index 6b947a49a7..f2b39ed028 100644 --- a/contrib/python/setuptools/py3/pkg_resources/__init__.py +++ b/contrib/python/setuptools/py3/pkg_resources/__init__.py @@ -3235,8 +3235,8 @@ from library.python import resource class ResProvider(EmptyProvider): - _resource_fs = {} - + _resource_fs = {} + def __init__(self, prefix): if hasattr(prefix, '__file__'): key = prefix.__file__.rsplit('/', 1)[0] @@ -3284,13 +3284,13 @@ class ResProvider(EmptyProvider): return self._resource_fs.get(path) def _listdir(self, path): - result = self.__lookup(path) - if result is None: - return [] + result = self.__lookup(path) + if result is None: + return [] return list(result) def _isdir(self, path): - return bool(self.__lookup(path)) + return bool(self.__lookup(path)) class ResDistribution(DistInfoDistribution): |