From 2e0927ddfd646f6e6f4ede0500e2bf6b8805b119 Mon Sep 17 00:00:00 2001 From: "Dr. Peter Poeml" Date: Mon, 12 Mar 2007 23:17:34 +0000 Subject: [PATCH] - apply fix from Christoph Thiel to use cElementTree from Python 2.5 --- osc/core.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/osc/core.py b/osc/core.py index a3e2f054..39fbe6e8 100755 --- a/osc/core.py +++ b/osc/core.py @@ -12,10 +12,14 @@ import sys import urllib2 from urllib import pathname2url, quote_plus from urlparse import urlunsplit -import cElementTree as ET from cStringIO import StringIO import shutil import conf +try: + from xml.etree import cElementTree as ET +except ImportError: + import cElementTree as ET + BUFSIZE = 1024*1024