Skip to content

Commit 3b08065

Browse files
committed
Fix pylint errors
1 parent 0609b84 commit 3b08065

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

msgcheck/po.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def _add_message(self, numline_msgid, fuzzy, fmt, msg):
301301
"""
302302
Add a message from PO file in list of messages.
303303
"""
304-
if 'msgid' in msg and len(msg['msgid']) == 0:
304+
if 'msgid' in msg and not msg['msgid']:
305305
# find file language/charset in properties
306306
# (first string without msgid)
307307
match = re.search(r'language: ([a-zA-Z-_]+)',
@@ -330,7 +330,7 @@ def read(self):
330330
for line in po_file:
331331
numline += 1
332332
line = line.strip()
333-
if len(line) == 0:
333+
if not line:
334334
continue
335335
if line.startswith('#,'):
336336
fuzzy = 'fuzzy' in line

0 commit comments

Comments
 (0)