diff mercurial/hgweb/hgweb_mod.py @ 20034:1e5b38a919dd

cleanup: move stdlib imports to their own import statement There are a few warnings still produced by my import checker, but those are false positives produced by modules that share a name with stdlib modules.
author Augie Fackler <raf@durin42.com>
date Wed, 06 Nov 2013 16:48:06 -0500
parents 1dba26575dba
children 507919a34c5b
line wrap: on
line diff
--- a/mercurial/hgweb/hgweb_mod.py	Wed Nov 06 18:19:04 2013 -0500
+++ b/mercurial/hgweb/hgweb_mod.py	Wed Nov 06 16:48:06 2013 -0500
@@ -6,7 +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 os
+import os, re
 from mercurial import ui, hg, hook, error, encoding, templater, util, repoview
 from mercurial.templatefilters import websub
 from mercurial.i18n import _
@@ -14,7 +14,7 @@
 from common import HTTP_OK, HTTP_NOT_MODIFIED, HTTP_BAD_REQUEST
 from common import HTTP_NOT_FOUND, HTTP_SERVER_ERROR
 from request import wsgirequest
-import webcommands, protocol, webutil, re
+import webcommands, protocol, webutil
 
 perms = {
     'changegroup': 'pull',