summaryrefslogtreecommitdiff
path: root/buildlibxml.py
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2012-10-10 21:33:56 +0200
committerStefan Behnel <stefan_ml@behnel.de>2012-10-10 21:33:56 +0200
commit7827b0c10b0bf4722df84eb1c2d91c13a33565ff (patch)
treed0b3794cbc5d2ce8e3e77eb5b6090dcdb973fd2a /buildlibxml.py
parent00b450275d5d2c9c7d13aee9030be1204f718a13 (diff)
downloadpython-lxml-7827b0c10b0bf4722df84eb1c2d91c13a33565ff.tar.gz
parsing the Xcode version requires decoding in Py3
Diffstat (limited to 'buildlibxml.py')
-rw-r--r--buildlibxml.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildlibxml.py b/buildlibxml.py
index 76509e5f..6e83e84a 100644
--- a/buildlibxml.py
+++ b/buildlibxml.py
@@ -293,7 +293,7 @@ def build_libxml2xslt(download_dir, build_dir,
if os.path.exists('/usr/bin/xcodebuild'):
pipe = subprocess.Popen(['/usr/bin/xcodebuild', '-version'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
out, err = pipe.communicate()
- xcode_version = out.splitlines()[0]
+ xcode_version = out.splitlines()[0].decode('utf8')
# Also parse only first digit, because 3.2.1 can't be parsed nicely
if (xcode_version.startswith('Xcode') and
version.StrictVersion(xcode_version.split()[1]) >= version.StrictVersion('4.0')):