mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
fix print statement
This commit is contained in:
parent
9abfc457e0
commit
af30d2eeaa
3 changed files with 17 additions and 18 deletions
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue