common/uilib.py
branchstable
changeset 3352 83aabc5e3de3
parent 3212 07d11bacfefe
child 3369 7b88d12b4ee2
child 4212 ab6573088b4a
equal deleted inserted replaced
3351:2ea19d969a2d 3352:83aabc5e3de3
   113 
   113 
   114 
   114 
   115 try:
   115 try:
   116     from lxml import etree
   116     from lxml import etree
   117 except (ImportError, AttributeError):
   117 except (ImportError, AttributeError):
   118     # gae environment: lxml not availabel
   118     # gae environment: lxml not available
   119     pass
   119     pass
   120 else:
   120 else:
   121 
   121 
   122     def soup2xhtml(data, encoding):
   122     def soup2xhtml(data, encoding):
   123         """tidy (at least try) html soup and return the result
   123         """tidy (at least try) html soup and return the result