Skip to content

Commit

Permalink
Merge pull request #489 from goelakash/edit-compile
Browse files Browse the repository at this point in the history
Forcing value to type str for keys starting with '*'  
``tables[last_table][key] = str(e) if e.__class__ != str else "'" + e + "'"   would be the same as directly forcing str
  • Loading branch information
henrykironde committed May 16, 2016
2 parents 95d9274 + 6a10329 commit eb81eb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def compile_script(script_file):
except:
e = str(value)

tables[last_table][key] = str(e) if e.__class__ != str else "'" + e + "'"
tables[last_table][key] = "'" + str(e) + "'"
else:
# general script attributes
values[key] = '"' + value + '"'
Expand Down

0 comments on commit eb81eb6

Please sign in to comment.