summaryrefslogtreecommitdiffstats
path: root/contrib/python/ipython/py2/IPython/utils/contexts.py
diff options
context:
space:
mode:
authorNikita Slyusarev <[email protected]>2022-02-10 16:46:53 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:46:53 +0300
commit469afdc4e2587bf62ecdd096b75a0baa444c4012 (patch)
tree49e222ea1c5804306084bb3ae065bb702625360f /contrib/python/ipython/py2/IPython/utils/contexts.py
parentcd77cecfc03a3eaf87816af28a33067c4f0cdb59 (diff)
Restoring authorship annotation for Nikita Slyusarev <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'contrib/python/ipython/py2/IPython/utils/contexts.py')
-rw-r--r--contrib/python/ipython/py2/IPython/utils/contexts.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/contrib/python/ipython/py2/IPython/utils/contexts.py b/contrib/python/ipython/py2/IPython/utils/contexts.py
index 14f4b47ba6c..4d379b0eda1 100644
--- a/contrib/python/ipython/py2/IPython/utils/contexts.py
+++ b/contrib/python/ipython/py2/IPython/utils/contexts.py
@@ -2,8 +2,8 @@
"""Miscellaneous context managers.
"""
-import warnings
-
+import warnings
+
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.
@@ -61,14 +61,14 @@ class preserve_keys(object):
class NoOpContext(object):
- """
- Deprecated
-
- Context manager that does nothing."""
-
- def __init__(self):
- warnings.warn("""NoOpContext is deprecated since IPython 5.0 """,
- DeprecationWarning, stacklevel=2)
-
+ """
+ Deprecated
+
+ Context manager that does nothing."""
+
+ def __init__(self):
+ warnings.warn("""NoOpContext is deprecated since IPython 5.0 """,
+ DeprecationWarning, stacklevel=2)
+
def __enter__(self): pass
def __exit__(self, type, value, traceback): pass