diff hgext/patchbomb.py @ 3877:abaee83ce0a6

Replace demandload with new demandimport
author Matt Mackall <mpm@selenic.com>
date Wed, 13 Dec 2006 13:27:09 -0600
parents 0e68608bd11d
children 57b797601b61
line wrap: on
line diff
--- a/hgext/patchbomb.py	Tue Dec 12 18:16:23 2006 -0600
+++ b/hgext/patchbomb.py	Wed Dec 13 13:27:09 2006 -0600
@@ -63,10 +63,9 @@
 #
 # That should be all.  Now your patchbomb is on its way out.
 
-from mercurial.demandload import *
-demandload(globals(), '''email.MIMEMultipart email.MIMEText email.Utils
-                         mercurial:cmdutil,commands,hg,mail,ui,patch
-                         os errno popen2 socket sys tempfile time''')
+import os, errno, popen2, socket, sys, tempfile, time
+import email.MIMEMultipart, email.MIMEText, email.Utils
+from mercurial import cmdutil, commands, hg, mail, ui, patch
 from mercurial.i18n import gettext as _
 from mercurial.node import *