diff options
author | orivej <orivej@yandex-team.ru> | 2022-02-10 16:44:49 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:44:49 +0300 |
commit | 718c552901d703c502ccbefdfc3c9028d608b947 (patch) | |
tree | 46534a98bbefcd7b1f3faa5b52c138ab27db75b7 /contrib/python/ipython | |
parent | e9656aae26e0358d5378e5b63dcac5c8dbe0e4d0 (diff) | |
download | ydb-718c552901d703c502ccbefdfc3c9028d608b947.tar.gz |
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/python/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 | ||||
-rw-r--r-- | contrib/python/ipython/py2/bin/ya.make | 8 | ||||
-rw-r--r-- | contrib/python/ipython/py2/ya.make | 8 | ||||
-rw-r--r-- | contrib/python/ipython/py3/ya.make | 6 |
5 files changed, 17 insertions, 17 deletions
diff --git a/contrib/python/ipython/py2/IPython/core/extensions.py b/contrib/python/ipython/py2/IPython/core/extensions.py index 58855466f1..9559b57398 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 b777f13da0..e649f45567 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): diff --git a/contrib/python/ipython/py2/bin/ya.make b/contrib/python/ipython/py2/bin/ya.make index 0ff960df6f..a6dd632a55 100644 --- a/contrib/python/ipython/py2/bin/ya.make +++ b/contrib/python/ipython/py2/bin/ya.make @@ -1,11 +1,11 @@ -PROGRAM(ipython) +PROGRAM(ipython) -OWNER(g:python-contrib borman nslus) +OWNER(g:python-contrib borman nslus) -PEERDIR( +PEERDIR( contrib/python/ipython ) -PY_MAIN(IPython:start_ipython) +PY_MAIN(IPython:start_ipython) END() diff --git a/contrib/python/ipython/py2/ya.make b/contrib/python/ipython/py2/ya.make index c356efb08c..67798a07e9 100644 --- a/contrib/python/ipython/py2/ya.make +++ b/contrib/python/ipython/py2/ya.make @@ -35,10 +35,10 @@ IF (OS_DARWIN) ) ENDIF () -NO_CHECK_IMPORTS(IPython.*) - -NO_LINT() - +NO_CHECK_IMPORTS(IPython.*) + +NO_LINT() + PY_SRCS( TOP_LEVEL IPython/__init__.py diff --git a/contrib/python/ipython/py3/ya.make b/contrib/python/ipython/py3/ya.make index a0f1dd9e64..0c45ad1d9c 100644 --- a/contrib/python/ipython/py3/ya.make +++ b/contrib/python/ipython/py3/ya.make @@ -34,8 +34,8 @@ IF (OS_DARWIN) ) ENDIF() -NO_LINT() - +NO_LINT() + NO_CHECK_IMPORTS( IPython.* ) @@ -43,7 +43,7 @@ NO_CHECK_IMPORTS( PY_SRCS( TOP_LEVEL IPython/__init__.py - IPython/__main__.py + IPython/__main__.py IPython/config.py IPython/consoleapp.py IPython/core/__init__.py |