summaryrefslogtreecommitdiffstats
path: root/Lib/smtplib.py
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2009-09-25 21:35:24 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2009-09-25 21:35:24 (GMT)
commitaf30d2eeaabfb184ed0869135c18e0fb17bc6fce (patch)
treeee77ff22614286ed886cefba66a9270c2567b02b /Lib/smtplib.py
parent9abfc457e0b7cd79c848943d5dde604668dfe06d (diff)
downloadcpython-af30d2eeaabfb184ed0869135c18e0fb17bc6fce.zip
cpython-af30d2eeaabfb184ed0869135c18e0fb17bc6fce.tar.gz
cpython-af30d2eeaabfb184ed0869135c18e0fb17bc6fce.tar.bz2
fix print statement
Diffstat (limited to 'Lib/smtplib.py')
-rwxr-xr-xLib/smtplib.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/smtplib.py b/Lib/smtplib.py
index b88adfe..a01a184 100755
--- a/Lib/smtplib.py
+++ b/Lib/smtplib.py
@@ -800,13 +800,13 @@ class LMTP(SMTP):
self.sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
self.sock.connect(host)
except socket.error as msg:
- if self.debuglevel > 0: print>>stderr, 'connect fail:', host
+ if self.debuglevel > 0: print('connect fail:', host, file=stderr)
if self.sock:
self.sock.close()
self.sock = None
raise socket.error(msg)
(code, msg) = self.getreply()
- if self.debuglevel > 0: print>>stderr, "connect:", msg
+ if self.debuglevel > 0: print('connect:', msg, file=stderr)
return (code, msg)