From 3dc083242f2255d9caca93debfb52324bdeed6ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20BERTHO?= Date: Sat, 21 Oct 2017 18:30:13 +0200 Subject: [PATCH] Fixed quote MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: RĂ©mi BERTHO --- SSnR.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SSnR.py b/SSnR.py index 0603e89..b2e1a04 100755 --- a/SSnR.py +++ b/SSnR.py @@ -105,7 +105,7 @@ def main(): return -1 for input_filename in filenames: try: - output_file = open((input_ex.subn(args["regex_output"], input_filename))[0], "w", encoding='utf8') + output_file = open((input_ex.subn(args["regex_output"], input_filename))[0], "w", encoding="utf8") output_files.append(output_file) except OSError as exception: print("Error: file not found: " + str(exception)) @@ -113,7 +113,7 @@ def main(): use_output_file = True elif args["output"] is not None: try: - output_file = open(args["output"], "w", encoding='utf8') + output_file = open(args["output"], "w", encoding="utf8") output_files.append(output_file) except OSError as exception: print("Error: file not found: " + str(exception)) @@ -127,7 +127,7 @@ def main(): if is_file: for filename in filenames: try: - with open(filename, "r", encoding='utf8') as file: + with open(filename, "r", encoding="utf8") as file: string = file.read() except OSError as exception: print("Error: file not found: " + str(exception))