Changeset 1641:6bb81ba9321b
- Timestamp:
- 06/03/08 13:00:47 (3 months ago)
- Author:
- klai@…
- Branch:
- default
- Message:
-
XML accelerator needs python 2.5
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r1639
|
r1641
|
|
| 40 | 40 | self.parser.register(self) |
| 41 | 41 | elif parser == 1: |
| 42 | | # Relatively fast and is bundled. |
| | 42 | # Relatively fast and is bundled with Python 2.5 |
| 43 | 43 | from xml.etree import cElementTree |
| 44 | 44 | self.parser = cElementTree.XMLTreeBuilder(target = target) |
| 45 | | else: |
| | 45 | elif parser == 2: |
| 46 | 46 | # Requires an external package |
| 47 | 47 | from lxml import etree |
| … |
… |
|
| 185 | 185 | |
| 186 | 186 | # Load XML accelerator |
| 187 | | xmlrpclib.SgmlopParser = SgmlopParser |
| | 187 | #xmlrpclib.SgmlopParser = SgmlopParser |
| 188 | 188 | |
| 189 | 189 | def test(length): |