We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20c9279 commit f2f9ddfCopy full SHA for f2f9ddf
Magics/macro.py
@@ -394,7 +394,6 @@ def tofortran(self, f):
394
print(f, "")
395
396
def to_yaml(self):
397
-
398
def tidy(x):
399
if isinstance(x, (list, tuple)):
400
return [tidy(y) for y in x]
@@ -409,10 +408,10 @@ def tidy(x):
409
408
if hasattr(x, "tolist"):
410
return x.tolist()
411
412
- if x in ('on', 'true', 'yes'):
+ if x in ("on", "true", "yes"):
413
return True
414
415
- if x in ('off', 'false', 'no'):
+ if x in ("off", "false", "no"):
416
return False
417
418
return x
@@ -794,6 +793,7 @@ def _plot(*args):
794
793
795
if os.environ.get("MAGICS_DUMP_YAML"):
796
import yaml
+
797
actions = []
798
for n in args:
799
if isinstance(n, (list, tuple)):
0 commit comments