facho/facho.py (FachoXML): placeholder_for alias a find_or_create_element
FossilOrigin-Name: 3eed13b608fc6f06cb1c0d4f30926ff76094d556d9c4fa2de3f6eb09bba975d2
This commit is contained in:
@@ -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):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user