aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/setuptools
diff options
context:
space:
mode:
authortorkve <torkve@yandex-team.ru>2022-02-10 16:48:23 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:23 +0300
commitd2e3ef74aed5c066cc49df962b30ceb4318778ac (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /contrib/python/setuptools
parentf9cfbeee51d5849127bb58793a2edcdfd7bb91bb (diff)
downloadydb-d2e3ef74aed5c066cc49df962b30ceb4318778ac.tar.gz
Restoring authorship annotation for <torkve@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/python/setuptools')
-rw-r--r--contrib/python/setuptools/py2/pkg_resources/__init__.py18
-rw-r--r--contrib/python/setuptools/py3/pkg_resources/__init__.py12
2 files changed, 15 insertions, 15 deletions
diff --git a/contrib/python/setuptools/py2/pkg_resources/__init__.py b/contrib/python/setuptools/py2/pkg_resources/__init__.py
index 0a920ed8ac..649a2ce651 100644
--- a/contrib/python/setuptools/py2/pkg_resources/__init__.py
+++ b/contrib/python/setuptools/py2/pkg_resources/__init__.py
@@ -3229,8 +3229,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]
@@ -3279,16 +3279,16 @@ class ResProvider(EmptyProvider):
return self._resource_fs.get(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]
+ 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:
- return list(result)
+ return list(result)
def _isdir(self, path):
- return bool(self.__lookup(path))
+ return bool(self.__lookup(path))
class ResDistribution(DistInfoDistribution):
diff --git a/contrib/python/setuptools/py3/pkg_resources/__init__.py b/contrib/python/setuptools/py3/pkg_resources/__init__.py
index f2b39ed028..6b947a49a7 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):