--- bugz.py.orig 2007-07-16 14:06:28.000000000 +0200 +++ bugz.py 2007-07-16 14:14:23.000000000 +0200 @@ -10,8 +10,8 @@ Requirements ------------ - - Python 2.4 - - ElementTree + - Python 2.4 or 2.5 + - ElementTree (only with Python 2.4) Classes ------- @@ -238,7 +238,14 @@ from urlparse import urlsplit, urljoin from urllib import urlencode from urllib2 import build_opener, HTTPCookieProcessor, Request -from elementtree import ElementTree + +try: + # Python 2.5 implementation + from xml.etree import ElementTree +except ImportError: + # Stand-alone implementation + from elementtree import ElementTree + from cookielib import LWPCookieJar, CookieJar #