commit 1e02e3a1de99b7df131aea0eb0af492b7761a2ff
Author: Michael Simacek <msimacek(a)redhat.com>
Date: Tue Sep 9 14:11:20 2014 +0200
[pom_editor] minor code cleanup
java-utils/pom_editor.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/java-utils/pom_editor.py b/java-utils/pom_editor.py
index e6cfa63..feb4cdf 100644
--- a/java-utils/pom_editor.py
+++ b/java-utils/pom_editor.py
@@ -155,7 +155,7 @@ def find_xml_recursive(module_path):
try:
module_path = find_xml(module_path)
module_xml = etree.parse(module_path)
- submodules, submod_paths = submodule_info(module_xml, module_path)
+ _, submod_paths = submodule_info(module_xml, module_path)
found = [module_path]
for submod_path in submod_paths:
found += find_xml_recursive(submod_path)
@@ -425,8 +425,8 @@ def macro(types=(XmlFile,)):
matches += 1
except PomQueryNoMatch as exception:
stored_exception = exception
- pass
if matches == 0 and not options.force:
+ # pylint: disable=E0702
raise stored_exception
except (PomException, etree.XMLSyntaxError, IOError) as exception:
Show replies by thread