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.
|
Check for the evennia version info.
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
with open(settings.BASE_PATH + os.sep + "VERSION") as f:
|
f = open(settings.BASE_PATH + os.sep + "VERSION", 'r')
|
||||||
return "%s-r%s" % (f.read().strip(), os.popen("hg id -i").read().strip())
|
return "%s-r%s" % (f.read().strip(), os.popen("hg id -i").read().strip())
|
||||||
return
|
|
||||||
except IOError:
|
except IOError:
|
||||||
return "Unknown version"
|
return "Unknown version"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue