mirror of
				https://github.com/django/django.git
				synced 2025-10-28 08:06:09 +00:00 
			
		
		
		
	Closed file after reading pot file
Faulty line was introduced in 50a8ab7cd1.
			
			
This commit is contained in:
		| @@ -402,7 +402,8 @@ class Command(NoArgsCommand): | |||||||
|                 elif self.verbosity > 0: |                 elif self.verbosity > 0: | ||||||
|                     self.stdout.write(errors) |                     self.stdout.write(errors) | ||||||
|         else: |         else: | ||||||
|             msgs = open(potfile, 'r').read() |             with open(potfile, 'r') as fp: | ||||||
|  |                 msgs = fp.read() | ||||||
|             if not self.invoked_for_django: |             if not self.invoked_for_django: | ||||||
|                 msgs = self.copy_plural_forms(msgs, locale) |                 msgs = self.copy_plural_forms(msgs, locale) | ||||||
|         msgs = msgs.replace( |         msgs = msgs.replace( | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user