From d3892d1a9aa0f0cb8a3b3fe05ef25de44f9eeee3 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Sat, 16 Dec 2023 11:52:49 +0100 Subject: [PATCH] pyupgrade rule UP015 Unnecessary open mode parameters --- tests/lint/line_length.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/lint/line_length.py b/tests/lint/line_length.py index ea973f52..74d4bde1 100755 --- a/tests/lint/line_length.py +++ b/tests/lint/line_length.py @@ -53,7 +53,7 @@ def main(): exit_status = 0 for arg in sys.argv[1:]: - with open(arg, "r") as source_file: + with open(arg) as source_file: for i, line in enumerate(source_file, start=1): line = line.rstrip() # Lines that end with a string are exempted