]> git.phdru.name Git - bookmarks_db.git/commitdiff
Style: Fix flake8 E741 ambiguous variable name 'l'
authorOleg Broytman <phd@phdru.name>
Wed, 6 Sep 2023 20:45:07 +0000 (23:45 +0300)
committerOleg Broytman <phd@phdru.name>
Sun, 12 Nov 2023 10:24:52 +0000 (13:24 +0300)
bkmk_parser.py
parse_html/__main__.py
subproc.py

index b929721cedca3d68b84734bce4aa0bc4be1be09f..420d20f7f2b4c07ed4266a357cc9016ee537dae3 100644 (file)
@@ -23,11 +23,11 @@ if DEBUG:
         print(note)
 
     def dump_names(folder_stack):
-        l = []
+        _l = []
         for object in folder_stack:
             if object.isFolder:
-                l.append(object.name)
-        return "'%s'" % "' '".join(l)
+                _l.append(object.name)
+        return "'%s'" % "' '".join(_l)
 
 else:
     def debug(note):
index 383aa57dcb035e7723274d3ff2e6b53ada66a7ff..98b610437c5b346b1f78f71b8af6b9a2e50fb8d6 100644 (file)
@@ -17,11 +17,11 @@ def main():
     import sys
     from .bkmk_parse_html import universal_charset
 
-    l = len(sys.argv)
-    if l == 3:
+    largs = len(sys.argv)
+    if largs == 3:
         filename = sys.argv[1]
         charset = sys.argv[2]
-    elif l == 2:
+    elif largs == 2:
         filename = sys.argv[1]
         charset = universal_charset
     else:
index e3c2717da8a4207ba0a099e02d9278bebeda7dd0..69bd13bc5cff42debdd86326905e8e571220455d 100755 (executable)
@@ -540,11 +540,11 @@ class RecordFile:
         line = f.readline()[:-1]
         if line:
             try:
-                l = int(line)
+                _l = int(line)
             except ValueError:
                 raise IOError(("corrupt %s file structure"
                                % self.__class__.__name__))
-            return f.read(l)
+            return f.read(_l)
         else:
             # EOF.
             return ''