[Updated] D12271: setup: remove printf trampoline
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Wed Mar 2 16:27:22 UTC 2022
Closed by commit rHG1371c18e467d: setup: remove printf trampoline (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/D12271?vs=32362&id=32379
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D12271/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D12271
AFFECTED FILES
setup.py
CHANGE DETAILS
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -22,7 +22,6 @@
import sys, platform
import sysconfig
-printf = eval('print')
libdir_escape = 'unicode_escape'
@@ -51,7 +50,7 @@
version enabling these features (likely this requires the OpenSSL version to
be at least 1.0.1).
"""
- printf(error, file=sys.stderr)
+ print(error, file=sys.stderr)
sys.exit(1)
if sys.version_info[0] >= 3:
@@ -236,8 +235,8 @@
returncode, out, err = runcmd(cmd, self.env)
err = filterhgerr(err)
if err or returncode != 0:
- printf("stderr from '%s':" % (' '.join(cmd)), file=sys.stderr)
- printf(err, file=sys.stderr)
+ print("stderr from '%s':" % (' '.join(cmd)), file=sys.stderr)
+ print(err, file=sys.stderr)
return b''
return out
@@ -470,7 +469,7 @@
if hgrustext != 'cpython' and hgrustext is not None:
if hgrustext:
msg = 'unknown HGWITHRUSTEXT value: %s' % hgrustext
- printf(msg, file=sys.stderr)
+ print(msg, file=sys.stderr)
hgrustext = None
self.rust = hgrustext is not None
self.no_rust = not self.rust
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/c4e6085e/attachment-0002.html>
More information about the Mercurial-patches
mailing list