aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/tools/python3/src
diff options
context:
space:
mode:
authorignat <ignat@yandex-team.ru>2022-02-10 16:48:20 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:20 +0300
commit12d7840a194f4a6e4ea77a405f980074cf43e942 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /contrib/tools/python3/src
parentc8b279dd21ddcb47e755028d81281f113a0f4a11 (diff)
downloadydb-12d7840a194f4a6e4ea77a405f980074cf43e942.tar.gz
Restoring authorship annotation for <ignat@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/tools/python3/src')
-rw-r--r--contrib/tools/python3/src/Lib/ctypes/__init__.py4
-rw-r--r--contrib/tools/python3/src/Lib/doctest.py10
2 files changed, 7 insertions, 7 deletions
diff --git a/contrib/tools/python3/src/Lib/ctypes/__init__.py b/contrib/tools/python3/src/Lib/ctypes/__init__.py
index 6cdc87b81f..2dde747beb 100644
--- a/contrib/tools/python3/src/Lib/ctypes/__init__.py
+++ b/contrib/tools/python3/src/Lib/ctypes/__init__.py
@@ -371,8 +371,8 @@ class CDLL(object):
_restype_ = self._func_restype_
self._FuncPtr = _FuncPtr
- self._builtin = {}
-
+ self._builtin = {}
+
if handle is None:
if isinstance(self._name, dict):
self._builtin = self._name['symbols']
diff --git a/contrib/tools/python3/src/Lib/doctest.py b/contrib/tools/python3/src/Lib/doctest.py
index 8f083e425b..2910bebd8d 100644
--- a/contrib/tools/python3/src/Lib/doctest.py
+++ b/contrib/tools/python3/src/Lib/doctest.py
@@ -956,7 +956,7 @@ class DocTestFinder:
elif inspect.isfunction(object):
return module.__dict__ is object.__globals__
elif inspect.ismethoddescriptor(object):
- if hasattr(object, '__objclass__') and hasattr(object.__objclass__, '__module__'):
+ if hasattr(object, '__objclass__') and hasattr(object.__objclass__, '__module__'):
obj_mod = object.__objclass__.__module__
elif hasattr(object, '__module__'):
obj_mod = object.__module__
@@ -964,10 +964,10 @@ class DocTestFinder:
return True # [XX] no easy way to tell otherwise
return module.__name__ == obj_mod
elif inspect.isclass(object):
- try:
- return module.__name__ == object.__module__
- except:
- return True
+ try:
+ return module.__name__ == object.__module__
+ except:
+ return True
elif hasattr(object, '__module__'):
return module.__name__ == object.__module__
elif isinstance(object, property):