Skip to content

Commit c918171

Browse files
committed
Fix a WTF noticed by Jerry Seutter.
1 parent 39e307e commit c918171

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/smtplib.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,11 +264,11 @@ def set_debuglevel(self, debuglevel):
264264
"""
265265
self.debuglevel = debuglevel
266266

267-
def _get_socket(self, port, host, timeout):
267+
def _get_socket(self, host, port, timeout):
268268
# This makes it simpler for SMTP_SSL to use the SMTP connect code
269269
# and just alter the socket connection bit.
270270
if self.debuglevel > 0: print('connect:', (host, port), file=stderr)
271-
return socket.create_connection((port, host), timeout)
271+
return socket.create_connection((host, port), timeout)
272272

273273
def connect(self, host='localhost', port = 0):
274274
"""Connect to a host on a given port.

0 commit comments

Comments
 (0)