From 814fef2ba3a065b0c37655b13cf19d72a0c5d948 Mon Sep 17 00:00:00 2001 From: Lavender Date: Sun, 4 Apr 2021 08:50:14 -0700 Subject: [PATCH] Make lines shorter --- pat.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) mode change 100644 => 100755 pat.py diff --git a/pat.py b/pat.py old mode 100644 new mode 100755 index c44838e..9f99f39 --- a/pat.py +++ b/pat.py @@ -3,7 +3,7 @@ from enum import IntEnum from sys import argv, stdin, stderr from string import whitespace -# These next 2 lines of code are only for ANSI escape support on Windows cmd prompt/powershell +# These next 2 lines of code are only for ANSI escape support on Windows cmd/powershell # If you do not use cmd/ps, you can comment them out or remove them from os import system @@ -29,7 +29,9 @@ for arg in argv[1:]: read_result = file.read(bytes_to_read) except Exception as e: print( - f"Error {f'reading {file.name}' if 'file' in globals() else 'opening file'}: {e}", + f"Error \ + {f'reading {file.name}' if 'file' in globals() else 'opening file'}\ + : {e}", file=stderr, ) continue