From: Oleg Broytman Date: Wed, 6 Sep 2023 20:45:07 +0000 (+0300) Subject: Style: Fix flake8 E741 ambiguous variable name 'l' X-Git-Tag: 5.0.0~78 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=c58611ea4c70dc27b550ad4e0267b1a89edda7e0;p=bookmarks_db.git Style: Fix flake8 E741 ambiguous variable name 'l' --- diff --git a/bkmk_parser.py b/bkmk_parser.py index b929721..420d20f 100644 --- a/bkmk_parser.py +++ b/bkmk_parser.py @@ -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): diff --git a/parse_html/__main__.py b/parse_html/__main__.py index 383aa57..98b6104 100644 --- a/parse_html/__main__.py +++ b/parse_html/__main__.py @@ -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: diff --git a/subproc.py b/subproc.py index e3c2717..69bd13b 100755 --- a/subproc.py +++ b/subproc.py @@ -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 ''