Skip to content

Commit

Permalink
Fix an xpath parsing bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
dharvey-consbio committed Oct 27, 2016
1 parent c04d191 commit 5b180f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gis_metadata/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def get_xpath_branch(xroot, xpath):
""" :return: the relative part of an XPATH: that which extends past the root provided """

if xroot and xpath and xpath.startswith(xroot):
xpath = xpath.replace(xroot, '')
xpath = xpath[len(xroot):]
xpath = xpath.lstrip(XPATH_DELIM)

return xpath
Expand Down

0 comments on commit 5b180f2

Please sign in to comment.