From 651ba3d400e9efd75e1618066cd1b485cccac1a2 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Mon, 17 Dec 2012 11:08:05 -0500 Subject: [PATCH] tests/annotationparser: Drop Python API usage down to 2.6, not 2.7 .iterfind() is new in 2.7, but we claim 2.6 support, as I use on RHEL6. --- tests/scanner/annotationparser/test_parser.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/scanner/annotationparser/test_parser.py b/tests/scanner/annotationparser/test_parser.py index 86cd41a..a1c5866 100644 --- a/tests/scanner/annotationparser/test_parser.py +++ b/tests/scanner/annotationparser/test_parser.py @@ -145,12 +145,12 @@ def expected2tree(docblock): annotations = docblock.find('identifier/annotations') if annotations is not None: expected += ' \n' - for annotation in annotations.iterfind('annotation'): + for annotation in annotations.findall('annotation'): expected += ' \n' expected += ' %s\n' % (annotation.find('name').text, ) if annotation.find('options') is not None: expected += ' \n' - for option in annotation.iterfind('options/option'): + for option in annotation.findall('options/option'): expected += '