Show More
@@ -2362,6 +2362,14 b' class InteractiveShell(SingletonConfigurable):' | |||||
2362 | kwargs['local_ns'] = self.get_local_scope(stack_depth) |
|
2362 | kwargs['local_ns'] = self.get_local_scope(stack_depth) | |
2363 | with self.builtin_trap: |
|
2363 | with self.builtin_trap: | |
2364 | result = fn(*args, **kwargs) |
|
2364 | result = fn(*args, **kwargs) | |
|
2365 | ||||
|
2366 | # The code below prevents output from being displayed | |||
|
2367 | # when using magic %time. | |||
|
2368 | # Output from '%time foo();', for instance, would never | |||
|
2369 | # be displayed. | |||
|
2370 | if magic_name == 'time' and len(magic_arg_s) > 0 and magic_arg_s[-1] == ';': | |||
|
2371 | return None | |||
|
2372 | ||||
2365 | return result |
|
2373 | return result | |
2366 |
|
2374 | |||
2367 | def get_local_scope(self, stack_depth): |
|
2375 | def get_local_scope(self, stack_depth): |
General Comments 0
You need to be logged in to leave comments.
Login now