From 97a9444bdfb661dd57c2fe8ee62f3a2c73e5ab9e 2021-03-09 00:58:13 From: Daniel Goldfarb Date: 2021-03-09 00:58:13 Subject: [PATCH] darker -r 60625f241f298b5039cb2debc365db38aa7bb522 --- 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