Show More
@@ -57,7 +57,7 b' class BuiltinTrap(Configurable):' | |||||
57 | from IPython.lib import deepreload |
|
57 | from IPython.lib import deepreload | |
58 | if self.shell.deep_reload: |
|
58 | if self.shell.deep_reload: | |
59 | from warnings import warn |
|
59 | from warnings import warn | |
60 |
warn("Automatically replacing builtin `reload` by `deepreload.reload` is deprecated |
|
60 | warn("Automatically replacing builtin `reload` by `deepreload.reload` is deprecated since IPython 4.0, please import `reload` explicitly from `IPython.lib.deepreload", DeprecationWarning) | |
61 | self.auto_builtins['reload'] = deepreload._dreload |
|
61 | self.auto_builtins['reload'] = deepreload._dreload | |
62 | else: |
|
62 | else: | |
63 | self.auto_builtins['dreload']= deepreload._dreload |
|
63 | self.auto_builtins['dreload']= deepreload._dreload |
@@ -350,12 +350,12 b' def _dreload(module, **kwargs):' | |||||
350 | import reload explicitly from `IPython.lib.deepreload` to use it |
|
350 | import reload explicitly from `IPython.lib.deepreload` to use it | |
351 |
|
351 | |||
352 | """ |
|
352 | """ | |
|
353 | # this was marked as deprecated and for 5.0 removal, but | |||
|
354 | # IPython.core_builtin_trap have a Deprecation warning for 6.0, so cannot | |||
|
355 | # remove that now. | |||
353 | warn(""" |
|
356 | warn(""" | |
354 |
injecting `dreload` in interactive namespace is deprecated |
|
357 | injecting `dreload` in interactive namespace is deprecated since IPython 4.0. | |
355 | Please import `reload` explicitly from `IPython.lib.deepreload`. |
|
358 | Please import `reload` explicitly from `IPython.lib.deepreload`. | |
356 | """, DeprecationWarning, stacklevel=2) |
|
359 | """, DeprecationWarning, stacklevel=2) | |
357 | reload(module, **kwargs) |
|
360 | reload(module, **kwargs) | |
358 |
|
361 | |||
359 | # Uncomment the following to automatically activate deep reloading whenever |
|
|||
360 | # this module is imported |
|
|||
361 | #builtin_mod.reload = reload |
|
General Comments 0
You need to be logged in to leave comments.
Login now