Skip to content

Commit

Permalink
Black format
Browse files Browse the repository at this point in the history
  • Loading branch information
mirceaulinic authored Mar 20, 2020
1 parent b0e02cb commit ed4b26e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion napalm/base/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,9 @@ def find_txt(xml_tree, path, default="", namespaces=None):
"""
value = ""
try:
xpath_applied = xml_tree.xpath(path, namespaces=namespaces) # will consider the first match only
xpath_applied = xml_tree.xpath(
path, namespaces=namespaces
) # will consider the first match only
xpath_length = len(xpath_applied) # get a count of items in XML tree
if xpath_length and xpath_applied[0] is not None:
xpath_result = xpath_applied[0]
Expand Down

0 comments on commit ed4b26e

Please sign in to comment.