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

Replace range function by enumerate

parent 5277fcad
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -239,8 +239,8 @@ class PoMessage(object):
strlines = mstr.split('\n')
if len(idlines) < 2 or len(idlines) != len(strlines):
continue
for i in range(0, len(idlines)):
endin = len(idlines[i]) - len(idlines[i].rstrip(' '))
for i, idline in enumerate(idlines):
endin = len(idline) - len(idline.rstrip(' '))
endout = len(strlines[i]) - len(strlines[i].rstrip(' '))
if (endin > 0 or endout > 0) and endin != endout:
errors.append(
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