From dd14d17a747a9c259858faf2fcc3ea6b92df4e15 Mon Sep 17 00:00:00 2001 From: smosker Date: Thu, 10 Feb 2022 16:48:21 +0300 Subject: Restoring authorship annotation for . Commit 1 of 2. --- contrib/python/ipython/py2/IPython/extensions/autoreload.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'contrib/python/ipython/py2/IPython/extensions') 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__ -- cgit v1.3