summaryrefslogtreecommitdiffstats
path: root/contrib/python/ipython/py3/IPython/utils/dir2.py
diff options
context:
space:
mode:
authorAlexander Smirnov <[email protected]>2024-12-19 08:16:17 +0000
committerAlexander Smirnov <[email protected]>2024-12-19 08:16:17 +0000
commitc1c806d731fa634503bf452ee3c603ed956abe2c (patch)
treef2a69c7615b518119f1c895672544ce8ad1a4fe4 /contrib/python/ipython/py3/IPython/utils/dir2.py
parent892a954b648dfce3da44ad433b2258e303b08b06 (diff)
parentbb0840c0025a75dd3b85b746ebcec7deb7d9fe1c (diff)
Merge branch 'rightlib' into mergelibs-241219-0815
Diffstat (limited to 'contrib/python/ipython/py3/IPython/utils/dir2.py')
-rw-r--r--contrib/python/ipython/py3/IPython/utils/dir2.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/python/ipython/py3/IPython/utils/dir2.py b/contrib/python/ipython/py3/IPython/utils/dir2.py
index 9f19b2dd84f..5dc699a92d4 100644
--- a/contrib/python/ipython/py3/IPython/utils/dir2.py
+++ b/contrib/python/ipython/py3/IPython/utils/dir2.py
@@ -41,7 +41,7 @@ def dir2(obj):
# TypeError: dir(obj) does not return a list
words = set()
- if safe_hasattr(obj, '__class__'):
+ if safe_hasattr(obj, "__class__"):
words |= set(dir(obj.__class__))
# filter out non-string attributes which may be stuffed by dir() calls
@@ -62,7 +62,7 @@ def get_real_method(obj, name):
Returns the method or None.
"""
try:
- canary = getattr(obj, '_ipython_canary_method_should_not_exist_', None)
+ canary = getattr(obj, "_ipython_canary_method_should_not_exist_", None)
except Exception:
return None