forked from expo/troggle
remove unused import
This commit is contained in:
1
parsers/caves.py
Normal file → Executable file
1
parsers/caves.py
Normal file → Executable 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),
|
||||
|
||||
Reference in New Issue
Block a user