diff hgext/factotum.py @ 18647:c1d23b4a66d5

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.
author Mads Kiilerich <mads@kiilerich.com>
date Sun, 10 Feb 2013 18:26:04 +0100
parents cbb916e2d7c5
children 1d50c69c1f0a
line wrap: on
line diff
--- 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