Skip to content
Snippets Groups Projects
Commit 7d9e3446 authored by Josh Austin's avatar Josh Austin
Browse files

update style

parent 61075033
No related branches found
No related tags found
No related merge requests found
...@@ -101,8 +101,9 @@ def dump(fout, obj): ...@@ -101,8 +101,9 @@ def dump(fout, obj):
elif isinstance(v, list) and v and all(isinstance(o, dict) for o in v): elif isinstance(v, list) and v and all(isinstance(o, dict) for o in v):
tables.extend((name + (k,), d, True) for d in reversed(v)) tables.extend((name + (k,), d, True) for d in reversed(v))
elif v is None: elif v is None:
# based on mojombo's comment: https://github.com/toml-lang/toml/issues/146#issuecomment-25019344
fout.write( fout.write(
'#{} = VALUE # To use: uncomment and replace VALUE with your own value.\n'.format(_escape_id(k))) '#{} = null # To use: uncomment and replace null with value\n'.format(_escape_id(k)))
else: else:
fout.write('{} = {}\n'.format(_escape_id(k), _format_value(v))) fout.write('{} = {}\n'.format(_escape_id(k), _format_value(v)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment