mail: use print function

We no longer use the print statement in mercurial.* \o/
This commit is contained in:
Gregory Szorc 2016-01-02 11:47:07 -08:00
parent 4d22c2ded4
commit ade216b11a
2 changed files with 2 additions and 3 deletions

View File

@ -5,7 +5,7 @@
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.
from __future__ import absolute_import
from __future__ import absolute_import, print_function
import email
import os
@ -81,7 +81,7 @@ class SMTPS(smtplib.SMTP):
def _get_socket(self, host, port, timeout):
if self.debuglevel > 0:
print >> sys.stderr, 'connect:', (host, port)
print('connect:', (host, port), file=sys.stderr)
new_socket = socket.create_connection((host, port), timeout)
new_socket = sslutil.wrapsocket(new_socket,
self.keyfile, self.certfile,

View File

@ -100,7 +100,6 @@
i18n/polib.py not using absolute_import
mercurial/cmdutil.py not using absolute_import
mercurial/commands.py not using absolute_import
mercurial/mail.py requires print_function
setup.py not using absolute_import
tests/filterpyflakes.py requires print_function
tests/generate-working-copy-states.py requires print_function