aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorshadchin <shadchin@yandex-team.ru>2022-04-09 13:50:59 +0300
committershadchin <shadchin@yandex-team.ru>2022-04-09 13:50:59 +0300
commit67ade9a1ace3bdb3b25b2a8e66cd46d94d89a7be (patch)
tree381a2ec0007a55bc4e06b9727dbb29cc960ad7ce /contrib
parent24ac00d7ea42b18cefe755792df13ee4116ad5e7 (diff)
downloadydb-67ade9a1ace3bdb3b25b2a8e66cd46d94d89a7be.tar.gz
Remove unnecessary patch from Python 3
ref:08457aac212d00dad336d739a11d619cf2882ae3
Diffstat (limited to 'contrib')
-rw-r--r--contrib/tools/python3/src/Lib/inspect.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/tools/python3/src/Lib/inspect.py b/contrib/tools/python3/src/Lib/inspect.py
index dd00c21fc2..6f91435541 100644
--- a/contrib/tools/python3/src/Lib/inspect.py
+++ b/contrib/tools/python3/src/Lib/inspect.py
@@ -655,13 +655,13 @@ def cleandoc(doc):
def getfile(object):
"""Work out which source or compiled file an object was defined in."""
if ismodule(object):
- if getattr(object, '__file__', None) is not None:
+ if getattr(object, '__file__', None):
return object.__file__
raise TypeError('{!r} is a built-in module'.format(object))
if isclass(object):
if hasattr(object, '__module__'):
module = sys.modules.get(object.__module__)
- if getattr(module, '__file__', None) is not None:
+ if getattr(module, '__file__', None):
return module.__file__
raise TypeError('{!r} is a built-in class'.format(object))
if ismethod(object):