Kaydet (Commit) 6310d658 authored tarafından Claude Paroz's avatar Claude Paroz

Closed file after reading pot file

Faulty line was introduced in 50a8ab7c.
üst 50a8ab7c
......@@ -402,7 +402,8 @@ class Command(NoArgsCommand):
elif self.verbosity > 0:
self.stdout.write(errors)
else:
msgs = open(potfile, 'r').read()
with open(potfile, 'r') as fp:
msgs = fp.read()
if not self.invoked_for_django:
msgs = self.copy_plural_forms(msgs, locale)
msgs = msgs.replace(
......
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