Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
b8raoult committed Dec 16, 2020
1 parent 20c9279 commit f2f9ddf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Magics/macro.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,6 @@ def tofortran(self, f):
print(f, "")

def to_yaml(self):

def tidy(x):
if isinstance(x, (list, tuple)):
return [tidy(y) for y in x]
Expand All @@ -409,10 +408,10 @@ def tidy(x):
if hasattr(x, "tolist"):
return x.tolist()

if x in ('on', 'true', 'yes'):
if x in ("on", "true", "yes"):
return True

if x in ('off', 'false', 'no'):
if x in ("off", "false", "no"):
return False

return x
Expand Down Expand Up @@ -794,6 +793,7 @@ def _plot(*args):

if os.environ.get("MAGICS_DUMP_YAML"):
import yaml

actions = []
for n in args:
if isinstance(n, (list, tuple)):
Expand Down

0 comments on commit f2f9ddf

Please sign in to comment.