From c58611ea4c70dc27b550ad4e0267b1a89edda7e0 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Wed, 6 Sep 2023 23:45:07 +0300 Subject: [PATCH] Style: Fix flake8 E741 ambiguous variable name 'l' --- bkmk_parser.py | 6 +++--- parse_html/__main__.py | 6 +++--- subproc.py | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) 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 '' -- 2.39.5