Return None instead of False from parse_entity.

Don't remember how I found that one, but None makes much more sense.
This commit is contained in:
Bill Currie 2013-11-24 11:19:50 +09:00
parent c88d1987a1
commit eeaf2bc43f

View file

@ -229,7 +229,7 @@ def parse_epair(script, mapent):
def parse_entity(script):
if script.getToken(True) == None:
return False
return None
if script.token != "{":
map_error(script, "Missing {")
mapent = Entity()