Show More
@@ -733,6 +733,8 b' class MaybeAsyncCompile(Compile):' | |||
|
733 | 733 | super().__init__() |
|
734 | 734 | self.flags |= extra_flags |
|
735 | 735 | |
|
736 | ||
|
737 | if sys.version_info < (3,8): | |
|
736 | 738 | def __call__(self, *args, **kwds): |
|
737 | 739 | return compile(*args, **kwds) |
|
738 | 740 |
@@ -319,7 +319,7 b' class MagicsManager(Configurable):' | |||
|
319 | 319 | |
|
320 | 320 | For example:: |
|
321 | 321 | |
|
322 | c.MagicsManger.lazy_magics = { | |
|
322 | c.MagicsManager.lazy_magics = { | |
|
323 | 323 | "my_magic": "slow.to.import", |
|
324 | 324 | "my_other_magic": "also.slow", |
|
325 | 325 | } |
@@ -391,6 +391,7 b' def _decorator_skip_setup():' | |||
|
391 | 391 | child = pexpect.spawn( |
|
392 | 392 | sys.executable, ["-m", "IPython", "--colors=nocolor"], env=env |
|
393 | 393 | ) |
|
394 | child.str_last_chars = 1000 | |
|
394 | 395 | child.timeout = 5 * IPYTHON_TESTING_TIMEOUT_SCALE |
|
395 | 396 | |
|
396 | 397 | child.expect("IPython") |
@@ -24,7 +24,7 b' The ability to configure magics to be lazily loaded has been added to IPython.' | |||
|
24 | 24 | See the ``ipython --help-all`` section on ``MagicsManager.lazy_magic``. |
|
25 | 25 | One can now use:: |
|
26 | 26 | |
|
27 | c.MagicsManger.lazy_magics = { | |
|
27 | c.MagicsManager.lazy_magics = { | |
|
28 | 28 | "my_magic": "slow.to.import", |
|
29 | 29 | "my_other_magic": "also.slow", |
|
30 | 30 | } |
General Comments 0
You need to be logged in to leave comments.
Login now