mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 23:07:18 +03:00
mail: use print function
We no longer use the print statement in mercurial.* \o/
This commit is contained in:
parent
4d22c2ded4
commit
ade216b11a
@ -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,
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user