mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
Minor wizard utility cleanup.
This commit is contained in:
parent
ba735bf1a2
commit
1025b5402b
1 changed files with 2 additions and 4 deletions
|
@ -433,10 +433,8 @@ class MyCustomGame(CustomGame):
|
||||||
v = v.replace("\r", "\\r")
|
v = v.replace("\r", "\\r")
|
||||||
v = v.replace("\t", "\\t")
|
v = v.replace("\t", "\\t")
|
||||||
# See: https://github.com/shlomif/PySolFC/issues/177
|
# See: https://github.com/shlomif/PySolFC/issues/177
|
||||||
DISABLE_DUE_TO_GH177 = False
|
# if isinstance(v, six.text_type):
|
||||||
if DISABLE_DUE_TO_GH177:
|
# v = v.encode('utf-8')
|
||||||
if isinstance(v, six.text_type):
|
|
||||||
v = v.encode('utf-8')
|
|
||||||
if not v:
|
if not v:
|
||||||
v = 'Invalid Game Name'
|
v = 'Invalid Game Name'
|
||||||
fd.write(" '{}': '{}',\n".format(w.var_name, v))
|
fd.write(" '{}': '{}',\n".format(w.var_name, v))
|
||||||
|
|
Loading…
Add table
Reference in a new issue