Project

General

Profile

Revision 675

A few minor changes so Haizea will work with Python 2.4

View differences:

leases.py
40 40
from mx.DateTime import DateTime, TimeDelta, Parser
41 41

  
42 42
import logging
43
import xml.etree.ElementTree as ET
44 43

  
44
try:
45
    import xml.etree.ElementTree as ET
46
except ImportError:
47
    # Compatibility with Python <=2.4
48
    import elementtree.ElementTree as ET 
45 49

  
46 50

  
47 51

  
52

  
48 53
class Lease(object):
49 54
    """A resource lease
50 55
    

Also available in: Unified diff