summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2003-05-13 17:56:07 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2003-05-13 17:56:07 (GMT)
commita2f7728341956963c6088c7ba5076da0b9c1e6dd (patch)
treefbf2bb1dab03e13d88be58cf98593b049bf1866b /Tools
parent4693d46fefe378312b73c62ed07bb61cf12a83de (diff)
downloadcpython-a2f7728341956963c6088c7ba5076da0b9c1e6dd.zip
cpython-a2f7728341956963c6088c7ba5076da0b9c1e6dd.tar.gz
cpython-a2f7728341956963c6088c7ba5076da0b9c1e6dd.tar.bz2
Prevent script from allowing '-r12'
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/scripts/ndiff.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/scripts/ndiff.py b/Tools/scripts/ndiff.py
index 6f0f9a9..f399338 100755
--- a/Tools/scripts/ndiff.py
+++ b/Tools/scripts/ndiff.py
@@ -101,7 +101,7 @@ def main(args):
if rseen:
if args:
return fail("no args allowed with -r option")
- if whichfile in "12":
+ if whichfile in ("1", "2"):
restore(whichfile)
return 1
return fail("-r value must be 1 or 2")