diff options
author | Thomas Gellekum <tg@FreeBSD.org> | 2002-04-11 11:45:29 +0000 |
---|---|---|
committer | Thomas Gellekum <tg@FreeBSD.org> | 2002-04-11 11:45:29 +0000 |
commit | 5ce365a086e0012397a6851aeca518c253c36433 (patch) | |
tree | c1abb76ec4b55a91f17a7f4ac884bef01cb7acad /databases/gadfly/files/patch-socket | |
parent | Update checksum for Python-2.1.3. (diff) |
- Use re instead of obsolete regex module. This fixes some warnings
with newer versions of Python.
- Call socket.{connect,bind} with a tuple (ip, port).
Obtained from: Zope CVS tree
Diffstat (limited to 'databases/gadfly/files/patch-socket')
-rw-r--r-- | databases/gadfly/files/patch-socket | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/databases/gadfly/files/patch-socket b/databases/gadfly/files/patch-socket new file mode 100644 index 000000000000..9f8332859d8a --- /dev/null +++ b/databases/gadfly/files/patch-socket @@ -0,0 +1,24 @@ +diff -u gadfly-1.0/gfclient.py gadfly/gfclient.py +--- gadfly-1.0/gfclient.py Tue Oct 6 20:32:00 1998 ++++ gfclient.py Wed Jul 12 22:01:44 2000 +@@ -138,7 +138,7 @@ + import socket + sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) + #print type(sock), sock +- sock.connect(self.machine, self.port) ++ sock.connect((self.machine, self.port)) + return sock + + def send_action(self, action, arguments, socket): +diff -u gadfly-1.0/gfserve.py gadfly/gfserve.py +--- gadfly-1.0/gfserve.py Tue Oct 6 20:32:32 1998 ++++ gfserve.py Thu Sep 7 18:43:34 2000 +@@ -332,7 +332,7 @@ + if verbose: + print "set of REUSEADDR failed", sys.exc_type, sys.exc_value + pass +- sock.bind(self.HOST, self.port) ++ sock.bind((self.HOST, self.port)) + sock.listen(self.BACKLOG) + self.socket = sock + return sock |