summaryrefslogtreecommitdiffstats
path: root/Lib/smtplib.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2008-03-19 14:25:51 (GMT)
committerBarry Warsaw <barry@python.org>2008-03-19 14:25:51 (GMT)
commitc918171df8571cd455b3dc981817238a99e104b2 (patch)
tree0b86f84d6c249f39568bbb6c17b18e8792851e5d /Lib/smtplib.py
parent39e307e224bae1e1bb0e236aba5e76515d220eec (diff)
downloadcpython-c918171df8571cd455b3dc981817238a99e104b2.zip
cpython-c918171df8571cd455b3dc981817238a99e104b2.tar.gz
cpython-c918171df8571cd455b3dc981817238a99e104b2.tar.bz2
Fix a WTF noticed by Jerry Seutter.
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 da5e767..9a83559 100755
--- a/Lib/smtplib.py
+++ b/Lib/smtplib.py
@@ -264,11 +264,11 @@ class SMTP:
"""
self.debuglevel = debuglevel
- def _get_socket(self, port, host, timeout):
+ def _get_socket(self, host, port, timeout):
# This makes it simpler for SMTP_SSL to use the SMTP connect code
# and just alter the socket connection bit.
if self.debuglevel > 0: print('connect:', (host, port), file=stderr)
- return socket.create_connection((port, host), timeout)
+ return socket.create_connection((host, port), timeout)
def connect(self, host='localhost', port = 0):
"""Connect to a host on a given port.