mirror of https://github.com/django/django.git
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:
|
for filename in filenames:
|
||||||
file_path = os.path.normpath(os.path.join(dirpath, filename))
|
file_path = os.path.normpath(os.path.join(dirpath, filename))
|
||||||
file_ext = os.path.splitext(filename)[1]
|
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:
|
if self.verbosity > 1:
|
||||||
self.stdout.write('ignoring file %s in %s\n' % (filename, dirpath))
|
self.stdout.write('ignoring file %s in %s\n' % (filename, dirpath))
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue