diff options
Diffstat (limited to 'Lib/httplib.py')
-rw-r--r-- | Lib/httplib.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/httplib.py b/Lib/httplib.py index ca431ab..68553c5 100644 --- a/Lib/httplib.py +++ b/Lib/httplib.py @@ -36,10 +36,10 @@ import regsub import mimetools HTTP_VERSION = 'HTTP/1.0' +HTTP_VERSIONS_ACCEPTED = 'HTTP/1\.[0-9.]+' HTTP_PORT = 80 -replypat = regsub.gsub('\\.', '\\\\.', HTTP_VERSION) + \ - '[ \t]+\([0-9][0-9][0-9]\)\(.*\)' +replypat = HTTP_VERSIONS_ACCEPTED + '[ \t]+\([0-9][0-9][0-9]\)\(.*\)' replyprog = regex.compile(replypat) class HTTP: |