summaryrefslogtreecommitdiff
path: root/setupinfo.py
diff options
context:
space:
mode:
authorscoder <none@none>2008-07-11 22:40:28 +0200
committerscoder <none@none>2008-07-11 22:40:28 +0200
commit96a19cc0971fb2326459fbceec649064672eeb1c (patch)
treedf3d8bddac99f787cae78a07c90f827d254eca19 /setupinfo.py
parentaed2ae39cc7e4f1ae7009d040b4a94990d16ed7b (diff)
downloadpython-lxml-96a19cc0971fb2326459fbceec649064672eeb1c.tar.gz
[svn r3886] r4607@delle: sbehnel | 2008-07-10 18:13:00 +0200
Py3 Windows filename encoding work-around for build script --HG-- branch : trunk
Diffstat (limited to 'setupinfo.py')
-rw-r--r--setupinfo.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/setupinfo.py b/setupinfo.py
index 4bc0eecf..8d913e71 100644
--- a/setupinfo.py
+++ b/setupinfo.py
@@ -19,6 +19,8 @@ if sys.version_info[0] >= 3:
if _system_encoding is None:
_system_encoding = "iso-8859-1" # :-)
def decode_input(data):
+ if isinstance(data, str):
+ return data
return data.decode(_system_encoding)
else:
def decode_input(data):