From 54d3660d04918ace0c930434869e30c13820076c Mon Sep 17 00:00:00 2001 From: James Robinson Date: Mon, 2 Dec 2024 22:08:59 +0000 Subject: [PATCH] :rotating_light: Apply linting suggestions --- readabilipy/__main__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/readabilipy/__main__.py b/readabilipy/__main__.py index 573fb27..7e71201 100644 --- a/readabilipy/__main__.py +++ b/readabilipy/__main__.py @@ -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() @@ -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)