From: Fredrik Tolf Date: Fri, 23 Dec 2011 06:14:45 +0000 (+0100) Subject: Merge branch 'master' into python3 X-Git-Url: http://www.dolda2000.com/gitweb/?p=pdm.git;a=commitdiff_plain;h=c58b1ad8cc6658ea46ed049f6909b4ce05906b57 Merge branch 'master' into python3 --- c58b1ad8cc6658ea46ed049f6909b4ce05906b57 diff --cc pdm/cli.py index 32580bb,effe3c9..0b31682 --- a/pdm/cli.py +++ b/pdm/cli.py @@@ -51,17 -51,17 +51,17 @@@ class client(object) """Create a client object connected to the specified server. `sk' can either be a socket object, which is used as it is, or a string specification very similar to the - specification for pdm.srv.listen, so see its documentation for - details. The differences are only that this function does not - take arguments specific to socket creation, like the mode and - group arguments for Unix sockets. If `proto' is given, that - subprotocol will negotiated with the server (by calling the - select() method). + specification for L{pdm.srv.listen}, so see its documentation + for details. The differences are only that this function does + not take arguments specific to socket creation, like the mode + and group arguments for Unix sockets. If `proto' is given, + that subprotocol will negotiated with the server (by calling + the select() method). """ self.sk = resolve(sk) - self.buf = "" + self.buf = b"" line = self.readline() - if line != "+PDM1": + if line != b"+PDM1": raise protoerr("Illegal protocol signature") if proto is not None: self.select(proto)