From c07dc96df2b927ac1cbbba56da90e0a3a6c6b09e Mon Sep 17 00:00:00 2001 From: Reinout van Rees Date: Tue, 1 Oct 2024 20:31:18 +0200 Subject: [PATCH] quieted some ruff warnings --- shell/dos2unix.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shell/dos2unix.py b/shell/dos2unix.py index 113d124..288d771 100755 --- a/shell/dos2unix.py +++ b/shell/dos2unix.py @@ -26,7 +26,7 @@ def unix2dos(data): def confirm(file_): - s = raw_input(f"{file_}? ") + s = input(f"{file_}? ") return s and s[0] == "y" @@ -53,11 +53,11 @@ def usage(): sys.exit() -def main(): +def main(): # noqa: C901 try: opts, args = getopt.getopt(sys.argv[1:], "fniuvdc") args[0] - except: + except: # noqa: E722 usage() force = 0 noaction = 0