chore: remove py2 compatibility code (#40375)

This commit is contained in:
David Sanders 2023-11-01 07:20:32 -07:00 committed by GitHub
parent bc1ba1fe9d
commit 425efb5e47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 15 additions and 54 deletions

View file

@ -1,7 +1,5 @@
#!/usr/bin/env python3
from __future__ import print_function
import argparse
import hashlib
import json
@ -168,13 +166,7 @@ def main():
traceback.print_exc(file=sys.stderr)
return 0
elif args.operation == "set":
# Python 2/3 compatibility
try:
user_input = raw_input
except NameError:
user_input = input
answer = user_input(
answer = input(
"WARNING: Manually setting mtimes could mess up your build. "
"If you're sure, type yes: "
)