Skip to content

Commit f2f9ddf

Browse files
committed
black
1 parent 20c9279 commit f2f9ddf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Magics/macro.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,6 @@ def tofortran(self, f):
394394
print(f, "")
395395

396396
def to_yaml(self):
397-
398397
def tidy(x):
399398
if isinstance(x, (list, tuple)):
400399
return [tidy(y) for y in x]
@@ -409,10 +408,10 @@ def tidy(x):
409408
if hasattr(x, "tolist"):
410409
return x.tolist()
411410

412-
if x in ('on', 'true', 'yes'):
411+
if x in ("on", "true", "yes"):
413412
return True
414413

415-
if x in ('off', 'false', 'no'):
414+
if x in ("off", "false", "no"):
416415
return False
417416

418417
return x
@@ -794,6 +793,7 @@ def _plot(*args):
794793

795794
if os.environ.get("MAGICS_DUMP_YAML"):
796795
import yaml
796+
797797
actions = []
798798
for n in args:
799799
if isinstance(n, (list, tuple)):

0 commit comments

Comments
 (0)