Skip to content

Commit

Permalink
pyupgrade rule
Browse files Browse the repository at this point in the history
UP015 Unnecessary open mode parameters
  • Loading branch information
DimitriPapadopoulos committed Dec 16, 2023
1 parent 8928715 commit d3892d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/lint/line_length.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d3892d1

Please sign in to comment.