chore: remove py2 compatibility code (#40375)
This commit is contained in:
parent
bc1ba1fe9d
commit
425efb5e47
22 changed files with 15 additions and 54 deletions
|
@ -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: "
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue