Skip to content

Commit

Permalink
quieted some ruff warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
reinout committed Oct 1, 2024
1 parent f6131eb commit c07dc96
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions shell/dos2unix.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"


Expand All @@ -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
Expand Down

0 comments on commit c07dc96

Please sign in to comment.