From 684b2077b3a6d3fb99365e402ce8205bf54c6efd Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Mon, 17 Nov 2014 13:42:14 +0100 Subject: [PATCH] Improved readability of negative condition in makemessages Thanks Berker Peksag for the suggestion. --- django/core/management/commands/makemessages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/core/management/commands/makemessages.py b/django/core/management/commands/makemessages.py index 93add45ca4..ba8de527bf 100644 --- a/django/core/management/commands/makemessages.py +++ b/django/core/management/commands/makemessages.py @@ -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: