Removed with statement, it's not well supported (without future import) in python 2.5.
This commit is contained in:
parent
c49fbd7d99
commit
14ed95ebfe
1 changed files with 2 additions and 3 deletions
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue