summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorNicholas Riley <nriley@sabi.net>2000-09-24 06:29:50 (GMT)
committerNicholas Riley <nriley@sabi.net>2000-09-24 06:29:50 (GMT)
commit9a580c440c4f064a92bbc537ac3a2df1c0998afc (patch)
tree4ec711809101439fd5f236645b13e5f85825e90a /Lib
parent21afd01ce22f898dc19e88d31c76da1ea2596b96 (diff)
downloadcpython-9a580c440c4f064a92bbc537ac3a2df1c0998afc.zip
cpython-9a580c440c4f064a92bbc537ac3a2df1c0998afc.tar.gz
cpython-9a580c440c4f064a92bbc537ac3a2df1c0998afc.tar.bz2
Fixes for Python 1.6 compatibility - socket bind and connect get a
tuple instead two arguments.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/idlelib/protocol.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/idlelib/protocol.py b/Lib/idlelib/protocol.py
index 10295bf..f3f6382 100644
--- a/Lib/idlelib/protocol.py
+++ b/Lib/idlelib/protocol.py
@@ -328,7 +328,7 @@ class Server (Thread):
try:
self.wellknown = s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
- s.bind('', self.port)
+ s.bind(('', self.port))
s.listen(3)
except:
raise connectionLost
@@ -361,7 +361,7 @@ class Server (Thread):
def Client(ip='127.0.0.1', port=None):
try:
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
- s.connect(ip,port or Server.default_port)
+ s.connect((ip,port or Server.default_port))
except socket.error, what:
raise connectionLost(str(what))
except: