changeset 69:54c60c7e7e35

HTML Support - Move imports
author Bastian Blank <bblank@thinkmo.de>
date Sun, 30 May 2010 17:41:33 +0200
parents d7e235461c97
children 5cefd2cb6a12
files emeraldtree/html.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/emeraldtree/html.py	Sun May 30 17:39:14 2010 +0200
+++ b/emeraldtree/html.py	Sun May 30 17:41:33 2010 +0200
@@ -32,8 +32,6 @@
 ##
 
 import htmlentitydefs
-import re
-import mimetools, StringIO
 from HTMLParser import HTMLParser as HTMLParserBase
 
 from . import tree
@@ -96,6 +94,7 @@
                     content = v
             if http_equiv == "content-type" and content:
                 # use mimetools to parse the http header
+                import mimetools, StringIO
                 header = mimetools.Message(
                     StringIO.StringIO("%s: %s\n\n" % (http_equiv, content))
                     )