Commits

David Chambers  committed 0ee899f

Made `lxml` a fully-fledged requirement.

  • Participants
  • Parent commits a8dd6a5

Comments (0)

Files changed (2)

File requirements.txt

 django
 html2text
+lxml
 markdown
 pytz
 hg+http://bitbucket.org/IanLewis/disqus-python-client

File templatetags/mango_extras.py

 import time
 import urllib
 
+from lxml.html.clean import clean_html
 import markdown
 import pytz
 
 @register.filter
 @stringfilter
 def sanitize(html):
-    from lxml.html.clean import clean_html
     # strip the wrapping div and body tags (!) that are sometimes inserted
     return mark_safe(re.sub(r'^<div>|</?body>|</div>$', u'', clean_html(html)))