]> granicus.if.org Git - python/commitdiff
Fix a WTF noticed by Jerry Seutter.
authorBarry Warsaw <barry@python.org>
Wed, 19 Mar 2008 14:25:51 +0000 (14:25 +0000)
committerBarry Warsaw <barry@python.org>
Wed, 19 Mar 2008 14:25:51 +0000 (14:25 +0000)
Lib/smtplib.py

index da5e767e1fb5d8d1af359b36aaa91d40d187185e..9a83559f877bc1b12e82fea6899695005a0bd9ef 100755 (executable)
@@ -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.