"""Search a nodes children for the first child with a given name."""
for node in parent.childNodes:
if (node.localName == name and
- node.namespaceURI and
- node.namespaceURI == namespace):
+ node.namespaceURI and
+ node.namespaceURI == namespace):
return node
return None
-
def find_first_child_named(self, parent, name):
"""Search a nodes children for the first child with a given name"""
for node in parent.childNodes:
[testenv:pep8]
sitepackages = False
commands =
- flake8 {posargs}
+ flake8 {posargs} . cinder/common
flake8 --filename=cinder* bin
[testenv:pylint]
[flake8]
ignore = E711,E712,F401,F403,F811,F841,H302,H303,H304,H402,H404
builtins = _
-exclude = .venv,.tox,dist,doc,openstack,*egg,build
+exclude = .git,.venv,.tox,dist,doc,common,*egg,build