[Zodb-checkins] SVN: zdaemon/branches/py3/src/zdaemon/zdrun.py Don't open-code str.rstrip().
Marius Gedminas
cvs-admin at zope.org
Thu Feb 14 11:15:33 UTC 2013
Log message for revision 129391:
Don't open-code str.rstrip().
Changed:
U zdaemon/branches/py3/src/zdaemon/zdrun.py
-=-
Modified: zdaemon/branches/py3/src/zdaemon/zdrun.py
===================================================================
--- zdaemon/branches/py3/src/zdaemon/zdrun.py 2013-02-14 11:09:44 UTC (rev 129390)
+++ zdaemon/branches/py3/src/zdaemon/zdrun.py 2013-02-14 11:15:32 UTC (rev 129391)
@@ -288,8 +288,7 @@
except socket.error:
pass
else:
- while data.endswith("\n"):
- data = data[:-1]
+ data = data.rstrip("\n")
msg = ("Another zrdun is already up using socket %r:\n%s" %
(self.options.sockname, data))
sys.stderr.write(msg + "\n")
More information about the Zodb-checkins
mailing list