Home | Trees | Indices | Help |
|
---|
|
1 # -*- coding: utf-8 -*- 2 3 __author__ = "Zasimov Alexey" 4 __email__ = "zasimov-a@yandex-team.ru" 5 6 7 from stocks3.core.config import etree 8 import sys 9 10 try: 11 import tidylib 12 from tidylib import tidy_document 13 except ImportError: 14 # FIXME: закомментировал, чтобы не создавало проблем в логах 15 #sys.stderr.write("Please, install pytidylib: easy_install pytidylib\n") 16 tidylib = None 1719 document, errors = tidy_document(xml, options={'output_xml':1, 'wrap': 0, 'indent':0, 'input_xml':1}) 20 if len(errors) != 0: 21 raise RuntimeError("XML minimization failed: %s" % errors) 22 return document23
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Jul 20 17:49:38 2011 | http://epydoc.sourceforge.net |