diff options
author | orivej <orivej@yandex-team.ru> | 2022-02-10 16:45:01 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:01 +0300 |
commit | 2d37894b1b037cf24231090eda8589bbb44fb6fc (patch) | |
tree | be835aa92c6248212e705f25388ebafcf84bc7a1 /contrib/python/ipython/py2/IPython | |
parent | 718c552901d703c502ccbefdfc3c9028d608b947 (diff) | |
download | ydb-2d37894b1b037cf24231090eda8589bbb44fb6fc.tar.gz |
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/python/ipython/py2/IPython')
-rw-r--r-- | contrib/python/ipython/py2/IPython/core/extensions.py | 6 | ||||
-rw-r--r-- | contrib/python/ipython/py2/IPython/core/profiledir.py | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/contrib/python/ipython/py2/IPython/core/extensions.py b/contrib/python/ipython/py2/IPython/core/extensions.py index 9559b57398..58855466f1 100644 --- a/contrib/python/ipython/py2/IPython/core/extensions.py +++ b/contrib/python/ipython/py2/IPython/core/extensions.py @@ -77,9 +77,9 @@ class ExtensionManager(Configurable): with self.shell.builtin_trap: if module_str not in sys.modules: - try: - sys.modules[module_str] = __import__('IPython.extensions.' + module_str) - except ImportError: + try: + sys.modules[module_str] = __import__('IPython.extensions.' + module_str) + except ImportError: __import__(module_str) mod = sys.modules[module_str] if self._call_load_ipython_extension(mod): diff --git a/contrib/python/ipython/py2/IPython/core/profiledir.py b/contrib/python/ipython/py2/IPython/core/profiledir.py index e649f45567..b777f13da0 100644 --- a/contrib/python/ipython/py2/IPython/core/profiledir.py +++ b/contrib/python/ipython/py2/IPython/core/profiledir.py @@ -113,10 +113,10 @@ class ProfileDir(LoggingConfigurable): readme = os.path.join(self.startup_dir, 'README') - if not os.path.exists(readme): - import pkgutil + if not os.path.exists(readme): + import pkgutil with open(readme, 'wb') as f: - f.write(pkgutil.get_data(__name__, 'profile/README_STARTUP')) + f.write(pkgutil.get_data(__name__, 'profile/README_STARTUP')) @observe('security_dir') def check_security_dir(self, change=None): |