# HG changeset patch
# User Pierre-Yves David <pierre-yves.da...@octobus.net>
# Date 1583770604 -3600
#      Mon Mar 09 17:16:44 2020 +0100
# Node ID 27e1e79c1a5ad9dfa699954aa68a4c0361d39f1b
# Parent  b4fe3395b975d72c56f392fa671f86c3ccd1a892
# EXP-Topic rust-test-option
# Available At https://dev.heptapod.net/octobus/mercurial-devel/
#              hg pull https://dev.heptapod.net/octobus/mercurial-devel/ -r 
27e1e79c1a5a
setup: use printf instead of print

Yuya Nishihara pointed `printf` to me, so I will respect the cargo cult.

diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -3,8 +3,6 @@
 #
 # 'python setup.py install', or
 # 'python setup.py --help' for more options
-from __future__ import print_function
-
 import os
 
 # Mercurial will never work on Python 3 before 3.5 due to a lack
@@ -143,7 +141,7 @@ hgrustext = os.environ.get('HGWITHRUSTEX
 # (see mercurial/__modulepolicy__.py)
 if hgrustext != 'cpython' and hgrustext is not None:
     if hgrustext:
-        print('unkown HGWITHRUSTEXT value: %s' % hgrustext, file=sys.stderr)
+        printf('unkown HGWITHRUSTEXT value: %s' % hgrustext, file=sys.stderr)
     hgrustext = None
 
 import ctypes
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to