From 86775926651986ff944487ab00ef79de7c23bea8 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 29 Aug 2023 05:23:51 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- barcode/writer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/barcode/writer.py b/barcode/writer.py index b63e5ea..513f762 100755 --- a/barcode/writer.py +++ b/barcode/writer.py @@ -189,7 +189,7 @@ def packed(self, line): """ line += " " c = 1 - for i in range(0, len(line) - 1): + for i in range(len(line) - 1): if line[i] == line[i + 1]: c += 1 else: