cleaning code
authorLaure Bourgois <Laure.Bourgois@logilab.fr>
Tue, 02 Dec 2008 10:23:11 +0100
changeset 164 031b97433e84
parent 163 451a3e35dbcb
child 165 c5ff97312b8a
cleaning code
common/uilib.py
--- a/common/uilib.py	Tue Dec 02 10:12:53 2008 +0100
+++ b/common/uilib.py	Tue Dec 02 10:23:11 2008 +0100
@@ -16,6 +16,8 @@
 from urllib import quote as urlquote
 from cStringIO import StringIO
 from xml.parsers.expat import ExpatError
+from lxml import etree
+from copy import deepcopy
 
 import simplejson
 
@@ -168,9 +170,6 @@
         params.append('true')
     return "javascript: replacePageChunk(%s);" % ', '.join(params)
 
-from lxml import etree
-from copy import deepcopy
-
 def safe_cut(text, length):
     """returns a string of length <length> based on <text>, removing any html
     tags from given text if cut is necessary.