Replaced an obsolete file() call with open().

- Legacy-Id: 16396
This commit is contained in:
Henrik Levkowetz 2019-07-04 20:57:36 +00:00
parent 77e055264e
commit fbc131c73f

View file

@ -27,7 +27,7 @@ def get_charter_text(group):
'''
charter = group.charter
path = os.path.join(settings.CHARTER_PATH, '%s-%s.txt' % (charter.canonical_name(), charter.rev))
f = file(path,'r')
f = open(path,'r')
text = f.read()
f.close()