From 298e9f57a6a8d818763e68da0cf42e02669512e1 2024-10-25 08:30:32 From: Jisu Ryu Date: 2024-10-25 08:30:32 Subject: [PATCH] Fix formatting --- diff --git a/IPython/core/magics/code.py b/IPython/core/magics/code.py index 4bfe3b1..834ca51 100644 --- a/IPython/core/magics/code.py +++ b/IPython/core/magics/code.py @@ -153,8 +153,8 @@ def strip_initial_indent(lines): for line in it: if line.startswith(indent): - yield line[len(indent):] - elif line in ('\n', '\r\n') or len(line) == 0: + yield line[len(indent) :] + elif line in ("\n", "\r\n") or len(line) == 0: yield line else: # Less indented than the first line - stop dedenting