]> git.phdru.name Git - m_librarian.git/commitdiff
Cleanup: Fix flake8 E741 ambiguous variable name 'l'
authorOleg Broytman <phd@phdru.name>
Mon, 23 Oct 2017 21:26:45 +0000 (00:26 +0300)
committerOleg Broytman <phd@phdru.name>
Mon, 23 Oct 2017 21:26:45 +0000 (00:26 +0300)
m_librarian/inp.py

index 863523fe2cbbf0f95637656e702f6b364873a5c5..b3a3d84b43b662bd7870f51d77d0f504d8c18a78 100644 (file)
@@ -14,10 +14,10 @@ EOT = chr(4)  # INP field separator
 
 def split_line(line):
     parts = line.strip().split(EOT)
-    l = len(parts)
-    if l < 11:
+    _l = len(parts)
+    if _l < 11:
         raise ValueError('Unknown INP structure: "%s"' % line)
-    if l == 11:  # Standard structure
+    if _l == 11:  # Standard structure
         parts.append(None)  # Emulate lang
     else:  # New structure
         parts = parts[:12]