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