Update config.py

Fix styling
This commit is contained in:
Mesalu
2018-07-31 15:03:53 -07:00
committed by GitHub
parent 98a3b4d3eb
commit 2b73f16101

View File

@@ -61,14 +61,13 @@ def run():
self->Read(*key, &rv, defaultVal);
return rv;
""")
c.addPyMethod('ReadInt', '(self, key, defaultVal=0)',
body="""\
import six
rv = self.__cpp_ReadInt(key, defaultVal)
if six.PY2:
rv = int(rv)
return rv
""")
c.addPyMethod('ReadInt', '(self, key, defaultVal=0)', body="""\
import six
rv = self.__cpp_ReadInt(key, defaultVal)
if six.PY2:
rv = int(rv)
return rv
""")
c.addCppMethod('double', 'ReadFloat', '(const wxString& key, double defaultVal=0.0)', """\
double rv;