factotum: fix urllib2 import so it no longer relies on a demandimport bug
authorMads Kiilerich <mads@kiilerich.com>
Sun, 10 Feb 2013 18:26:04 +0100
changeset 18647 c1d23b4a66d5
parent 18646 c6a81e54c209
child 18648 76b69cccb07a
factotum: fix urllib2 import so it no longer relies on a demandimport bug demandimport will do that urllib2 can be imported 'from mercurial' even though it doesn't exist there.
hgext/factotum.py
--- a/hgext/factotum.py	Sun Jan 27 03:32:09 2013 +0100
+++ b/hgext/factotum.py	Sun Feb 10 18:26:04 2013 +0100
@@ -47,8 +47,8 @@
 
 from mercurial.i18n import _
 from mercurial.url import passwordmgr
-from mercurial import httpconnection, urllib2, util
-import os
+from mercurial import httpconnection, util
+import os, urllib2
 
 ERRMAX = 128