We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63516d1 commit 4426dafCopy full SHA for 4426daf
Tools/i18n/pygettext.py
@@ -475,10 +475,8 @@ def _extract_docstring(self, node):
475
476
def _extract_message(self, node):
477
func_name = self._get_func_name(node)
478
- specs = self.options.keywords.get(func_name, [])
479
- for spec in specs:
480
- extracted = self._extract_message_with_spec(node, spec)
481
- if extracted:
+ for spec in self.options.keywords.get(func_name, []):
+ if self._extract_message_with_spec(node, spec):
482
break
483
484
def _extract_message_with_spec(self, node, spec):
0 commit comments