equal
deleted
inserted
replaced
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 |