Show More
@@ -776,9 +776,6 b' python-profiler package from non-free.""")' | |||||
776 | posix=False, strict=False) |
|
776 | posix=False, strict=False) | |
777 | if stmt == "" and cell is None: |
|
777 | if stmt == "" and cell is None: | |
778 | return |
|
778 | return | |
779 | elif cell == '': |
|
|||
780 | warn("Empty cell. Did you mean to use %timeit?") |
|
|||
781 | return |
|
|||
782 |
|
779 | |||
783 | timefunc = timeit.default_timer |
|
780 | timefunc = timeit.default_timer | |
784 | number = int(getattr(opts, "n", 0)) |
|
781 | number = int(getattr(opts, "n", 0)) |
@@ -36,7 +36,7 b' from IPython.utils.openpy import source_to_unicode' | |||||
36 | from IPython.utils.path import get_py_filename, unquote_filename |
|
36 | from IPython.utils.path import get_py_filename, unquote_filename | |
37 | from IPython.utils.process import abbrev_cwd |
|
37 | from IPython.utils.process import abbrev_cwd | |
38 | from IPython.utils.terminal import set_term_title |
|
38 | from IPython.utils.terminal import set_term_title | |
39 | from IPython.utils.warn import warn |
|
39 | ||
40 | #----------------------------------------------------------------------------- |
|
40 | #----------------------------------------------------------------------------- | |
41 | # Magic implementation classes |
|
41 | # Magic implementation classes | |
42 | #----------------------------------------------------------------------------- |
|
42 | #----------------------------------------------------------------------------- | |
@@ -595,9 +595,6 b' class OSMagics(Magics):' | |||||
595 | if cell is None: |
|
595 | if cell is None: | |
596 | # line magic |
|
596 | # line magic | |
597 | return self.shell.getoutput(line) |
|
597 | return self.shell.getoutput(line) | |
598 | elif cell == '': |
|
|||
599 | warn("Empty cell. Did you mean to use %!, %sx, or %system?") |
|
|||
600 | return |
|
|||
601 | else: |
|
598 | else: | |
602 | opts,args = self.parse_options(line, '', 'out=') |
|
599 | opts,args = self.parse_options(line, '', 'out=') | |
603 | output = self.shell.getoutput(cell) |
|
600 | output = self.shell.getoutput(cell) |
General Comments 0
You need to be logged in to leave comments.
Login now