Skip to content

Commit

Permalink
fixed syntaxwarning from later pythons
Browse files Browse the repository at this point in the history
  • Loading branch information
o-smirnov authored Apr 16, 2020
1 parent c0d7364 commit 078573b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ShadeMS/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ def generate_string_from_keys(template, keys, listsep=" ", titlesep=" ", prefix=
# convert lists to strings, add Capitalized keys with titles
for key, value in keys.items():
capkey = key.title()
if value is '':
if value == '':
full_keys[capkey] = ''
else:
if type(value) is list: # e.g. scan=[1,2] becomes scan="1 2"
Expand Down

0 comments on commit 078573b

Please sign in to comment.