Show More
@@ -10,11 +10,9 b' from __future__ import print_function' | |||||
10 |
|
10 | |||
11 | import sys |
|
11 | import sys | |
12 | import warnings |
|
12 | import warnings | |
13 | from IPython.utils.decorators import undoc |
|
|||
14 |
|
13 | |||
15 | warnings.warn("The module IPython.utils.warn is deprecated since IPython 4.0, use the standard warnings module instead", DeprecationWarning) |
|
14 | warnings.warn("The module IPython.utils.warn is deprecated since IPython 4.0, use the standard warnings module instead", DeprecationWarning) | |
16 |
|
15 | |||
17 | @undoc |
|
|||
18 | def warn(msg,level=2,exit_val=1): |
|
16 | def warn(msg,level=2,exit_val=1): | |
19 | """Deprecated |
|
17 | """Deprecated | |
20 |
|
18 | |||
@@ -43,7 +41,6 b' def warn(msg,level=2,exit_val=1):' | |||||
43 | sys.exit(exit_val) |
|
41 | sys.exit(exit_val) | |
44 |
|
42 | |||
45 |
|
43 | |||
46 | @undoc |
|
|||
47 | def info(msg): |
|
44 | def info(msg): | |
48 | """Deprecated |
|
45 | """Deprecated | |
49 |
|
46 | |||
@@ -52,7 +49,6 b' def info(msg):' | |||||
52 | warn(msg,level=1) |
|
49 | warn(msg,level=1) | |
53 |
|
50 | |||
54 |
|
51 | |||
55 | @undoc |
|
|||
56 | def error(msg): |
|
52 | def error(msg): | |
57 | """Deprecated |
|
53 | """Deprecated | |
58 |
|
54 | |||
@@ -61,7 +57,6 b' def error(msg):' | |||||
61 | warn(msg,level=3) |
|
57 | warn(msg,level=3) | |
62 |
|
58 | |||
63 |
|
59 | |||
64 | @undoc |
|
|||
65 | def fatal(msg,exit_val=1): |
|
60 | def fatal(msg,exit_val=1): | |
66 | """Deprecated |
|
61 | """Deprecated | |
67 |
|
62 |
@@ -54,6 +54,8 b" if __name__ == '__main__':" | |||||
54 | r'\.nbformat', |
|
54 | r'\.nbformat', | |
55 | r'\.parallel', |
|
55 | r'\.parallel', | |
56 | r'\.qt', |
|
56 | r'\.qt', | |
|
57 | # this is deprecated. | |||
|
58 | r'\.utils\.warn', | |||
57 | ] |
|
59 | ] | |
58 | # main API is in the inputhook module, which is documented. |
|
60 | # main API is in the inputhook module, which is documented. | |
59 |
|
61 |
General Comments 0
You need to be logged in to leave comments.
Login now