You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
Remove f-strings from merge from master
This commit is contained in:
@@ -64,8 +64,9 @@ PATTERNS = ("*.pyc", "*.pyo")
|
|||||||
|
|
||||||
def main():
|
def main():
|
||||||
usage_short = (
|
usage_short = (
|
||||||
f"""usage: {program} FILE...
|
"""usage: %s FILE...
|
||||||
Type -h for for full help."""
|
Type -h for for full help."""
|
||||||
|
% program
|
||||||
)
|
)
|
||||||
|
|
||||||
if len(sys.argv) == 1:
|
if len(sys.argv) == 1:
|
||||||
@@ -78,7 +79,7 @@ Type -h for for full help."""
|
|||||||
sys.argv[1:], "hVU", ["help", "version", "uncompyle6"]
|
sys.argv[1:], "hVU", ["help", "version", "uncompyle6"]
|
||||||
)
|
)
|
||||||
except getopt.GetoptError as e:
|
except getopt.GetoptError as e:
|
||||||
print(f"{os.path.basename(sys.argv[0])}: {e}", file=sys.stderr)
|
print("%s: %s" % (os.path.basename(sys.argv[0]), e), file=sys.stderr)
|
||||||
sys.exit(-1)
|
sys.exit(-1)
|
||||||
|
|
||||||
for opt, val in opts:
|
for opt, val in opts:
|
||||||
@@ -86,7 +87,7 @@ Type -h for for full help."""
|
|||||||
print(__doc__)
|
print(__doc__)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
elif opt in ("-V", "--version"):
|
elif opt in ("-V", "--version"):
|
||||||
print(f"{program} {__version__}")
|
print("%s %s" % (program, __version__))
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
else:
|
else:
|
||||||
print(opt)
|
print(opt)
|
||||||
@@ -97,7 +98,7 @@ Type -h for for full help."""
|
|||||||
if os.path.exists(files[0]):
|
if os.path.exists(files[0]):
|
||||||
disassemble_file(file, sys.stdout)
|
disassemble_file(file, sys.stdout)
|
||||||
else:
|
else:
|
||||||
print(f"Can't read {files[0]} - skipping", file=sys.stderr)
|
print("Can't read %s - skipping" % files[0], file=sys.stderr)
|
||||||
pass
|
pass
|
||||||
pass
|
pass
|
||||||
return
|
return
|
||||||
|
Reference in New Issue
Block a user