diff 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
line wrap: on
line diff
--- a/roundup/cgi/wsgi_handler.py	Wed Jul 25 00:16:00 2018 +0000
+++ b/roundup/cgi/wsgi_handler.py	Wed Jul 25 00:17:07 2018 +0000
@@ -10,7 +10,9 @@
 
 import roundup.instance
 from roundup.cgi import TranslationService
-from BaseHTTPServer import BaseHTTPRequestHandler, DEFAULT_ERROR_MESSAGE
+from roundup.anypy import http_
+BaseHTTPRequestHandler = http_.server.BaseHTTPRequestHandler
+DEFAULT_ERROR_MESSAGE = http_.server.DEFAULT_ERROR_MESSAGE
 
 
 class Writer(object):

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