##// END OF EJS Templates
Typo + Add Warning class for deprecation....
Matthias Bussonnier -
Show More
@@ -1,7 +1,7 b''
1 # encoding: utf-8
1 # encoding: utf-8
2 """Word completion for IPython.
2 """Word completion for IPython.
3
3
4 This module stared as fork of the rlcompleter module in the Python standard
4 This module started as fork of the rlcompleter module in the Python standard
5 library. The original enhancements made to rlcompleter have been sent
5 library. The original enhancements made to rlcompleter have been sent
6 upstream and were accepted as of Python 2.3,
6 upstream and were accepted as of Python 2.3,
7
7
@@ -67,7 +67,8 b' class NoOpContext(object):'
67 Context manager that does nothing."""
67 Context manager that does nothing."""
68
68
69 def __init__(self):
69 def __init__(self):
70 warnings.warn("""NoOpContext is deprecated since IPython 5.0 """)
70 warnings.warn("""NoOpContext is deprecated since IPython 5.0 """,
71 DeprecationWarning, stacklevel=2)
71
72
72 def __enter__(self): pass
73 def __enter__(self): pass
73 def __exit__(self, type, value, traceback): pass
74 def __exit__(self, type, value, traceback): pass
General Comments 0
You need to be logged in to leave comments. Login now