Changeset 663
- Timestamp:
- 09/19/05 14:01:24
- Files:
-
- trunk/cherrypy/_cphttptools.py (modified) (2 diffs)
- trunk/cherrypy/_cputil.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/_cphttptools.py
r650 r663 32 32 33 33 import cgi 34 35 from BaseHTTPServer import BaseHTTPRequestHandler36 responseCodes = BaseHTTPRequestHandler.responses37 34 38 35 import Cookie … … 544 541 if reason is None: 545 542 try: 546 reason = responseCodes[code][0]543 reason = _cputil.responseCodes[code][0] 547 544 except (KeyError, IndexError): 548 545 reason = "" trunk/cherrypy/_cputil.py
r644 r663 36 36 import os 37 37 #import os.path 38 39 from BaseHTTPServer import BaseHTTPRequestHandler 40 responseCodes = BaseHTTPRequestHandler.responses 38 41 39 42 import cherrypy … … 183 186 ''' % subTuple 184 187 185 import BaseHTTPServer186 _HTTPResponses = BaseHTTPServer.BaseHTTPRequestHandler.responses187 188 188 def getErrorStatusAndPage(status, traceback = None): 189 statusString, message = _HTTPResponses[status]189 statusString, message = responseCodes[status] 190 190 statusString = '%d %s' % (status, statusString) 191 191

