[yum-commits] Branch 'yum-3_2_X' - 2 commits - yum/update_md.py
James Antill
james at osuosl.org
Thu Feb 10 20:57:51 UTC 2011
yum/update_md.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 82bb36e237e104454ccb6c9a5c412e983278f28c
Author: James Antill <james at and.org>
Date: Thu Feb 10 15:55:37 2011 -0500
Fix recursion problem, with safe_iterparse.
diff --git a/yum/update_md.py b/yum/update_md.py
index 061a086..39fa72e 100644
--- a/yum/update_md.py
+++ b/yum/update_md.py
@@ -36,7 +36,7 @@ import rpmUtils.miscutils
def safe_iterparse(filename):
""" Works like iterparse, but hides XML errors (prints a warning). """
try:
- for event, elem in safe_iterparse(filename):
+ for event, elem in iterparse(filename):
yield event, elem
except SyntaxError: # Bad XML
print >> sys.stderr, "File is not valid XML:", filename
commit ee0fbe938cadea1457c89825412a978edf574125
Author: James Antill <james at and.org>
Date: Thu Feb 10 15:54:59 2011 -0500
Fix identifier typo.
diff --git a/yum/update_md.py b/yum/update_md.py
index 619250e..061a086 100644
--- a/yum/update_md.py
+++ b/yum/update_md.py
@@ -36,7 +36,7 @@ import rpmUtils.miscutils
def safe_iterparse(filename):
""" Works like iterparse, but hides XML errors (prints a warning). """
try:
- for event, elem in safe_iterparse(infile):
+ for event, elem in safe_iterparse(filename):
yield event, elem
except SyntaxError: # Bad XML
print >> sys.stderr, "File is not valid XML:", filename
More information about the Yum-commits
mailing list