comparison roundup/cgi/wsgi_handler.py @ 5409:277e91bf7936

Python 3 preparation: update BaseHTTPServer imports. roundup/anypy/http_.py extended and used in more places. Manual patch.
author Joseph Myers <jsm@polyomino.org.uk>
date Wed, 25 Jul 2018 00:17:07 +0000
parents 35ea9b1efc14
children 3a07c57d72bb
comparison
equal deleted inserted replaced
5408:e46ce04d5bbc 5409:277e91bf7936
8 import cgi 8 import cgi
9 import weakref 9 import weakref
10 10
11 import roundup.instance 11 import roundup.instance
12 from roundup.cgi import TranslationService 12 from roundup.cgi import TranslationService
13 from BaseHTTPServer import BaseHTTPRequestHandler, DEFAULT_ERROR_MESSAGE 13 from roundup.anypy import http_
14 BaseHTTPRequestHandler = http_.server.BaseHTTPRequestHandler
15 DEFAULT_ERROR_MESSAGE = http_.server.DEFAULT_ERROR_MESSAGE
14 16
15 17
16 class Writer(object): 18 class Writer(object):
17 '''Perform a start_response if need be when we start writing.''' 19 '''Perform a start_response if need be when we start writing.'''
18 def __init__(self, request): 20 def __init__(self, request):

Roundup Issue Tracker: http://roundup-tracker.org/