remove unused import

This commit is contained in:
Philip Sargent
2020-06-06 15:56:32 +01:00
parent 15d4defe0e
commit e0d8df0a79
2 changed files with 3 additions and 2 deletions

1
parsers/caves.py Normal file → Executable file
View File

@@ -170,6 +170,7 @@ def readcave(filename):
def getXML(text, itemname, minItems = 1, maxItems = None, printwarnings = True, context = ""):
# this next line is where it crashes horribly if a stray umlaut creeps in. Will fix itself in python3
items = re.findall("<%(itemname)s>(.*?)</%(itemname)s>" % {"itemname": itemname}, text, re.S)
if len(items) < minItems and printwarnings:
message = " ! %(count)i %(itemname)s found, at least %(min)i expected" % {"count": len(items),