[Zodb-checkins] CVS: ZODB3/ZEO - runsvr.py:1.8
Guido van Rossum
guido@python.org
Thu, 21 Nov 2002 16:31:24 -0500
Update of /cvs-repository/ZODB3/ZEO
In directory cvs.zope.org:/tmp/cvs-serv19128
Modified Files:
runsvr.py
Log Message:
Can't use a single %r to format the address, since it may be a (host,
port) tuple.
=== ZODB3/ZEO/runsvr.py 1.7 => 1.8 ===
--- ZODB3/ZEO/runsvr.py:1.7 Tue Nov 19 15:34:36 2002
+++ ZODB3/ZEO/runsvr.py Thu Nov 21 16:31:23 2002
@@ -213,7 +213,8 @@
def check_socket(self):
if self.can_connect(self.opts.family, self.opts.address):
- self.opts.usage("address %r already in use" % self.opts.address)
+ self.opts.usage("address %s already in use" %
+ repr(self.opts.address))
def can_connect(self, family, address):
s = socket.socket(family, socket.SOCK_STREAM)