misc,python: Run pre-commit run --all-files
Applies the `pyupgrade` hook to all files in the repo. Change-Id: I9879c634a65c5fcaa9567c63bc5977ff97d5d3bf
This commit is contained in:
@@ -127,8 +127,8 @@ def main():
|
||||
|
||||
# Open the file in read mode
|
||||
try:
|
||||
ascii_in = open(sys.argv[1], "r")
|
||||
except IOError:
|
||||
ascii_in = open(sys.argv[1])
|
||||
except OSError:
|
||||
print("Failed to open ", sys.argv[1], " for reading")
|
||||
exit(-1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user