Skip to content

Commit

Permalink
🚨 Apply linting suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
jemrobinson authored Dec 2, 2024
1 parent ebd3436 commit 54d3660
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions readabilipy/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def main():
sys.stdin.reconfigure(encoding="utf-8", errors="replace")
input_file = sys.stdin
else:
input_file = open(args.input_file, encoding="utf-8", errors="replace")
input_file = open(args.input_file, encoding="utf-8", errors="replace") # pylint: disable=consider-using-with

# Read from input then close if appropriate
html = input_file.read()
Expand All @@ -80,7 +80,7 @@ def main():
if args.output_file == "-":
output_file = sys.stdout
else:
output_file = open(args.output_file, "w", encoding="utf-8")
output_file = open(args.output_file, "w", encoding="utf-8") # pylint: disable=consider-using-with

# Write to output then close if appropriate
json.dump(article, output_file, ensure_ascii=False)
Expand Down

0 comments on commit 54d3660

Please sign in to comment.