Commit 36eb5c7d authored by Jérome Perrin's avatar Jérome Perrin

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

parent 763fc1b7
...@@ -26,7 +26,8 @@ from App.Common import package_home ...@@ -26,7 +26,8 @@ from App.Common import package_home
ph = package_home(globals()) ph = package_home(globals())
# Initializes a list with the charsets # 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