facho/facho.py (FachoXML): placeholder_for alias a find_or_create_element

FossilOrigin-Name: 3eed13b608fc6f06cb1c0d4f30926ff76094d556d9c4fa2de3f6eb09bba975d2
This commit is contained in:
2020-06-15 20:19:19 +00:00
parent 9b358f690c
commit dfeb071709
2 changed files with 5 additions and 4 deletions

View File

@@ -151,6 +151,9 @@ class FachoXML:
def _normalize_xpath(self, xpath):
return xpath.replace('//', '/')
def placeholder_for(self, xpath):
return self.find_or_create_element(xpath)
def find_or_create_element(self, xpath, append=False):
"""