# HG changeset patch # User Yuya Nishihara # Date 1446358028 -32400 # Node ID 1dde4914fb6ca6f4743346d3a91a1634524140d6 # Parent ccdc95c6841e5f2b2c791d0606a74502d9256240 hgweb: import BaseHTTPServer as module at top level This will avoid future warning spotted by the import checker. diff -r ccdc95c6841e -r 1dde4914fb6c mercurial/hgweb/common.py --- a/mercurial/hgweb/common.py Sun Nov 01 14:23:23 2015 +0900 +++ b/mercurial/hgweb/common.py Sun Nov 01 15:07:08 2015 +0900 @@ -6,6 +6,7 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. +import BaseHTTPServer import errno, mimetypes, os HTTP_OK = 200 @@ -102,8 +103,7 @@ raise AttributeError def _statusmessage(code): - from BaseHTTPServer import BaseHTTPRequestHandler - responses = BaseHTTPRequestHandler.responses + responses = BaseHTTPServer.BaseHTTPRequestHandler.responses return responses.get(code, ('Error', 'Unknown error'))[0] def statusmessage(code, message=None):