summaryrefslogtreecommitdiffstats
path: root/contrib/python/ipython/py2/IPython/extensions
diff options
context:
space:
mode:
authorsmosker <[email protected]>2022-02-10 16:48:21 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:48:21 +0300
commitdd14d17a747a9c259858faf2fcc3ea6b92df4e15 (patch)
treef332cd81782832c17c48d8c3b4511924cd9e47fd /contrib/python/ipython/py2/IPython/extensions
parentb637e2fa3213638fbabe52c15dad14c8237945ac (diff)
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'contrib/python/ipython/py2/IPython/extensions')
-rw-r--r--contrib/python/ipython/py2/IPython/extensions/autoreload.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/python/ipython/py2/IPython/extensions/autoreload.py b/contrib/python/ipython/py2/IPython/extensions/autoreload.py
index d3e420574d6..66f3f94ef1e 100644
--- a/contrib/python/ipython/py2/IPython/extensions/autoreload.py
+++ b/contrib/python/ipython/py2/IPython/extensions/autoreload.py
@@ -186,8 +186,8 @@ class ModuleReloader(object):
if not hasattr(module, '__file__') or module.__file__ is None:
return None, None
- if getattr(module, '__name__', None) in [None, '__mp_main__', '__main__']:
- # we cannot reload(__main__) or reload(__mp_main__)
+ if getattr(module, '__name__', None) in [None, '__mp_main__', '__main__']:
+ # we cannot reload(__main__) or reload(__mp_main__)
return None, None
filename = module.__file__