Skip to content

Commit a10d245

Browse files
authored
Merge pull request #11 from rimrul/patch-1
Fix noqa comment parsing
2 parents 871751d + 69845ea commit a10d245

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

msgcheck/po.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ def read(self): # pylint: disable=too-many-locals
350350
match = re.search(r'([a-z-]+)-format', line, re.IGNORECASE)
351351
fmt = match.group(1) if match else None
352352
if line.startswith('#'):
353-
noqa = 'noqa' in line
353+
noqa = noqa or 'noqa' in line
354354
continue
355355
if line.startswith('msg'):
356356
match = re.match(

0 commit comments

Comments
 (0)