mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Prevent script from allowing '-r12'
This commit is contained in:
parent
4693d46fef
commit
a2f7728341
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ def main(args):
|
||||||
if rseen:
|
if rseen:
|
||||||
if args:
|
if args:
|
||||||
return fail("no args allowed with -r option")
|
return fail("no args allowed with -r option")
|
||||||
if whichfile in "12":
|
if whichfile in ("1", "2"):
|
||||||
restore(whichfile)
|
restore(whichfile)
|
||||||
return 1
|
return 1
|
||||||
return fail("-r value must be 1 or 2")
|
return fail("-r value must be 1 or 2")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue