Skip to content
Snippets Groups Projects
Commit 3b080659 authored by Sébastien Helleu's avatar Sébastien Helleu
Browse files

Fix pylint errors

parent 0609b843
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -301,7 +301,7 @@ class PoFile(object):
"""
Add a message from PO file in list of messages.
"""
if 'msgid' in msg and len(msg['msgid']) == 0:
if 'msgid' in msg and not msg['msgid']:
# find file language/charset in properties
# (first string without msgid)
match = re.search(r'language: ([a-zA-Z-_]+)',
Loading
Loading
@@ -330,7 +330,7 @@ class PoFile(object):
for line in po_file:
numline += 1
line = line.strip()
if len(line) == 0:
if not line:
continue
if line.startswith('#,'):
fuzzy = 'fuzzy' in line
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment