Skip to content

Commit

Permalink
fix naming conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
nihlaeth committed Feb 25, 2017
1 parent 60e64e0 commit e7539e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions user_config/ini.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def _print_item(key, item, value):
if item.has_default():
# handle multiline strings
if item.type_ == list:
lines = ['- {}'.format(item) for item in item.get_default()]
lines = ['- {}'.format(thing) for thing in item.get_default()]
else:
lines = str(item.get_default()).split('\n')
print("# {} = {}".format(key, lines[0]))
Expand All @@ -145,7 +145,7 @@ def _print_item(key, item, value):
elif value is not None and value != item.get_default():
# handle multiline strings
if item.type_ == list:
lines = ['- {}'.format(item) for item in value]
lines = ['- {}'.format(thing) for thing in value]
else:
lines = str(value).split('\n')
print("{} = {}".format(key, lines[0]))
Expand Down

0 comments on commit e7539e3

Please sign in to comment.