Show More
@@ -6,6 +6,7 b'' | |||||
6 | # This software may be used and distributed according to the terms of the |
|
6 | # This software may be used and distributed according to the terms of the | |
7 | # GNU General Public License version 2 or any later version. |
|
7 | # GNU General Public License version 2 or any later version. | |
8 |
|
8 | |||
|
9 | import BaseHTTPServer | |||
9 | import errno, mimetypes, os |
|
10 | import errno, mimetypes, os | |
10 |
|
11 | |||
11 | HTTP_OK = 200 |
|
12 | HTTP_OK = 200 | |
@@ -102,8 +103,7 b' class continuereader(object):' | |||||
102 | raise AttributeError |
|
103 | raise AttributeError | |
103 |
|
104 | |||
104 | def _statusmessage(code): |
|
105 | def _statusmessage(code): | |
105 |
|
|
106 | responses = BaseHTTPServer.BaseHTTPRequestHandler.responses | |
106 | responses = BaseHTTPRequestHandler.responses |
|
|||
107 | return responses.get(code, ('Error', 'Unknown error'))[0] |
|
107 | return responses.get(code, ('Error', 'Unknown error'))[0] | |
108 |
|
108 | |||
109 | def statusmessage(code, message=None): |
|
109 | def statusmessage(code, message=None): |
General Comments 0
You need to be logged in to leave comments.
Login now