Commit dffafde8 authored by Guido van Rossum's avatar Guido van Rossum

Can't use a single %r to format the address, since it may be a (host,

port) tuple.
parent 669461b9
...@@ -213,7 +213,8 @@ class ZEOServer: ...@@ -213,7 +213,8 @@ class ZEOServer:
def check_socket(self): def check_socket(self):
if self.can_connect(self.opts.family, self.opts.address): 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): def can_connect(self, family, address):
s = socket.socket(family, socket.SOCK_STREAM) s = socket.socket(family, socket.SOCK_STREAM)
......
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