Project

General

Profile

Revision 675

A few minor changes so Haizea will work with Python 2.4

View differences:

rpc_commands.py
24 24
import xmlrpclib
25 25
import sys
26 26
from mx.DateTime import ISO, now, DateTimeDelta, Parser
27
import xml.etree.ElementTree as ET
28 27

  
28
try:
29
    import xml.etree.ElementTree as ET
30
except ImportError:
31
    # Compatibility with Python <=2.4
32
    import elementtree.ElementTree as ET 
33

  
29 34
class RPCCommand(Command):
30 35
    def __init__(self, argv):
31 36
        Command.__init__(self, argv)

Also available in: Unified diff