Author: megabajt
Date: Mon Oct 15 17:19:46 2007
New Revision: 8818

Modified:
   security/cve_reader.py
Log:
- don't fail on Ac where xml.etree.cElementTree module doesn't exist


Modified: security/cve_reader.py
==============================================================================
--- security/cve_reader.py      (original)
+++ security/cve_reader.py      Mon Oct 15 17:19:46 2007
@@ -12,7 +12,10 @@
 import datetime
 
 import PyRSS2Gen
-import xml.etree.cElementTree as ET
+try:
+       import xml.etree.cElementTree as ET
+except ImportError:
+       import cElementTree as ET
 
 # Changes go here
 CVSLOG = '/cvsroot/SPECS/commits.log'
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to