mirror of
https://github.com/django/django.git
synced 2024-11-29 22:56:46 +01:00
Improved readability of negative condition in makemessages
Thanks Berker Peksag for the suggestion.
This commit is contained in:
parent
6a05f0dfe3
commit
684b2077b3
@ -395,7 +395,7 @@ class Command(BaseCommand):
|
||||
for filename in filenames:
|
||||
file_path = os.path.normpath(os.path.join(dirpath, filename))
|
||||
file_ext = os.path.splitext(filename)[1]
|
||||
if not (file_ext in self.extensions) or is_ignored(file_path, self.ignore_patterns):
|
||||
if file_ext not in self.extensions or is_ignored(file_path, self.ignore_patterns):
|
||||
if self.verbosity > 1:
|
||||
self.stdout.write('ignoring file %s in %s\n' % (filename, dirpath))
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user