Commit 39a2aae6 authored by Jérome Perrin's avatar Jérome Perrin Committed by Kazuhiko Shiozaki

Localizer: close the charsets.txt file to prevent a ResourceWarning

parent c057504d
......@@ -26,7 +26,8 @@ from App.Common import package_home
ph = package_home(globals())
# Initializes a list with the charsets
charsets = [ x.strip() for x in open(ph + '/charsets.txt').readlines() ]
with open(ph + '/charsets.txt') as f:
charsets = [ x.strip() for x in f.readlines() ]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment