From 7e9ff62d894b2c7137356a279fc23cf2d89d9d3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20Rowlands=20=28=EB=B3=80=EA=B8=B0=ED=98=B8=29?= Date: Fri, 24 Apr 2020 13:35:34 +0900 Subject: [PATCH] flake8: fix ambiguous var names (#3674) --- dvc/dagascii.py | 2 +- tests/func/test_repro.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dvc/dagascii.py b/dvc/dagascii.py index f19f94148c..6f6d6b60b9 100644 --- a/dvc/dagascii.py +++ b/dvc/dagascii.py @@ -95,7 +95,7 @@ def __init__(self, cols, lines): self.cols = cols self.lines = lines - self.canvas = [[" "] * cols for l in range(lines)] + self.canvas = [[" "] * cols for line in range(lines)] def draw(self): """Draws ASCII canvas on the screen.""" diff --git a/tests/func/test_repro.py b/tests/func/test_repro.py index eecc3e4001..7c3e719486 100644 --- a/tests/func/test_repro.py +++ b/tests/func/test_repro.py @@ -1555,7 +1555,7 @@ def test_dvc_formatting_retained(tmp_dir, dvc, run_copy): # Add comments and custom formatting to DVC-file lines = list(map(_format_dvc_line, stage_path.read_text().splitlines())) lines.insert(0, "# Starting comment") - stage_text = "".join(l + "\n" for l in lines) + stage_text = "".join(line + "\n" for line in lines) stage_path.write_text(stage_text) # Rewrite data source and repro