Changeset 1641:6bb81ba9321b

Show
Ignore:
Timestamp:
06/03/08 13:00:47 (3 months ago)
Author:
klai@…
Branch:
default
Message:

XML accelerator needs python 2.5

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Tycoon/XMLRPCPatcher.py

    r1639 r1641  
    4040            self.parser.register(self) 
    4141        elif parser == 1: 
    42             # Relatively fast and is bundled. 
     42            # Relatively fast and is bundled with Python 2.5 
    4343            from  xml.etree import cElementTree 
    4444            self.parser = cElementTree.XMLTreeBuilder(target = target) 
    45         else: 
     45        elif parser == 2: 
    4646            # Requires an external package 
    4747            from lxml import etree 
     
    185185 
    186186        # Load XML accelerator 
    187         xmlrpclib.SgmlopParser = SgmlopParser 
     187        #xmlrpclib.SgmlopParser = SgmlopParser 
    188188 
    189189def test(length):