Commit a7a58b1c authored by 's avatar

merged Python 1.6/2.0 compat fix

parent 3266095b
......@@ -191,7 +191,7 @@ class PcgiFile:
if port:
try:
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.bind(hostname, port)
sock.bind((hostname, port))
except socket.error:
self.log.append("error creating/binding INET socket (%s, %s)" % (hostname, port))
raise PcgiFileException
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment