Removed with statement, it's not well supported (without future import) in python 2.5.

This commit is contained in:
Griatch 2012-05-04 09:20:30 +00:00
parent c49fbd7d99
commit 14ed95ebfe

View file

@ -243,9 +243,8 @@ def get_evennia_version():
Check for the evennia version info.
"""
try:
with open(settings.BASE_PATH + os.sep + "VERSION") as f:
return "%s-r%s" % (f.read().strip(), os.popen("hg id -i").read().strip())
return
f = open(settings.BASE_PATH + os.sep + "VERSION", 'r')
return "%s-r%s" % (f.read().strip(), os.popen("hg id -i").read().strip())
except IOError:
return "Unknown version"