diff --git a/IPython/core/magics/history.py b/IPython/core/magics/history.py index ca9a452..3b95ee7 100644 --- a/IPython/core/magics/history.py +++ b/IPython/core/magics/history.py @@ -206,7 +206,8 @@ class HistoryMagics(Magics): if get_output: inline, output = inline if range_pattern: - if not fnmatch.fnmatch(inline,range_pattern): continue; + if not fnmatch.fnmatch(inline, range_pattern): + continue inline = inline.expandtabs(4).rstrip() multiline = "\n" in inline