[Updated] D12282: setup: always decode xcode version
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Wed Mar 2 16:28:58 UTC 2022
Closed by commit rHGc9b620610d75: setup: always decode xcode version (authored by durin42).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D12282?vs=32373&id=32390
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D12282/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D12282
AFFECTED FILES
setup.py
CHANGE DETAILS
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -1663,9 +1663,7 @@
if sys.platform == 'darwin' and os.path.exists('/usr/bin/xcodebuild'):
version = runcmd(['/usr/bin/xcodebuild', '-version'], {})[1].splitlines()
if version:
- version = version[0]
- if sys.version_info[0] == 3:
- version = version.decode('utf-8')
+ version = version[0].decode('utf-8')
xcode4 = version.startswith('Xcode') and StrictVersion(
version.split()[1]
) >= StrictVersion('4.0')
To: durin42, indygreg, #hg-reviewers
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20220302/04a3ef53/attachment-0002.html>
More information about the Mercurial-patches
mailing list