Add short name splitting into second field

This commit is contained in:
Jack Stdin
2016-02-21 21:55:46 +03:00
parent c4b516a28c
commit 685c719ec1
5 changed files with 40 additions and 29 deletions

View File

@@ -15,7 +15,7 @@ class XMLParser:
elem.clear()
# Also eliminate now-empty references from the root node to elem
for ancestor in elem.xpath('ancestor-or-self::*'):
while ancestor.getprevious() is not None:
while ancestor.getprevious():
del ancestor.getparent()[0]
del context