diff options
| author | scoder <none@none> | 2008-07-11 22:40:28 +0200 |
|---|---|---|
| committer | scoder <none@none> | 2008-07-11 22:40:28 +0200 |
| commit | 96a19cc0971fb2326459fbceec649064672eeb1c (patch) | |
| tree | df3d8bddac99f787cae78a07c90f827d254eca19 /setupinfo.py | |
| parent | aed2ae39cc7e4f1ae7009d040b4a94990d16ed7b (diff) | |
| download | python-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.py | 2 |
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): |
