[Zope-Checkins] CVS: Zope3/lib/python/Zope/Server/LineReceiver - LineServerChannel.py:1.1.2.4
Shane Hathaway
shane@cvs.zope.org
Fri, 5 Apr 2002 17:53:04 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/Server/LineReceiver
In directory cvs.zope.org:/tmp/cvs-serv21961
Modified Files:
Tag: Zope3-Server-Branch
LineServerChannel.py
Log Message:
Made returning None explicit and fixed the catch-all response.
=== Zope3/lib/python/Zope/Server/LineReceiver/LineServerChannel.py 1.1.2.3 => 1.1.2.4 ===
else:
self.reply(self.unknown_reply, cmd.upper())
+ return None
def reply(self, code, args=(), flush=1):
""" """
try:
- msg = self.status_messages[code] %args
+ msg = self.status_messages[code] % args
except:
- msg = '500 Unknown Response: %i.' %code
+ msg = '500 Unknown Response: %s.' % repr(code)
self.write('%s\r\n' %msg)