Changeset 119
- Timestamp:
- 02/04/06 19:30:07 (3 years ago)
- Files:
-
- branches/timadditionaltypes/pyramid/test/tests.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/timadditionaltypes/pyramid/test/tests.py
r114 r119 34 34 from xml.sax.handler import feature_namespaces, feature_external_ges, \ 35 35 feature_external_pes, property_lexical_handler 36 from logilab.xmldiff.parser import SaxHandler 36 try: 37 from xmldiff.parser import SaxHandler 38 except ImportError: 39 from logilab.xmldiff.parser import SaxHandler 37 40 handler = SaxHandler(norm_sp, include_comment, encoding) 38 41 if html: … … 59 62 return handler.get_tree() 60 63 61 62 from logilab.xmldiff.format import AbstractFormatter 63 from logilab.xmldiff.objects import f_xpath,A_N2 64 try: 65 from xmldiff.format import AbstractFormatter 66 from xmldiff.objects import f_xpath,A_N2,A_N1 67 except ImportError: 68 from logilab.xmldiff.format import AbstractFormatter 69 from logilab.xmldiff.objects import f_xpath,A_N2,A_N1 64 70 import types 65 71 … … 114 120 # output formatter 115 121 if xupd: 116 from logilab.xmldiff.format import XUpdatePrinter 122 try: 123 from xmldiff.format import XUpdatePrinter 124 except ImportError: 125 from logilab.xmldiff.format import XUpdatePrinter 117 126 formatter = XUpdatePrinter() 118 127 else: … … 120 129 # choose and apply tree to tree algorithm 121 130 if ezs: 122 from logilab.xmldiff.ezs import EzsCorrector 131 try: 132 from xmldiff.ezs import EzsCorrector 133 except ImportError: 134 from logilab.xmldiff.ezs import EzsCorrector 135 123 136 strategy = EzsCorrector(formatter) 124 137 else: 125 from logilab.xmldiff.fmes import FmesCorrector 138 try: 139 from xmldiff.fmes import FmesCorrector 140 except ImportError: 141 from logilab.xmldiff.fmes import FmesCorrector 126 142 #import gc 127 143 #gc.set_debug(gc.DEBUG_LEAK|gc.DEBUG_STATS)
