]> granicus.if.org Git - python/commitdiff
Prevent script from allowing '-r12'
authorAndrew M. Kuchling <amk@amk.ca>
Tue, 13 May 2003 17:56:07 +0000 (17:56 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Tue, 13 May 2003 17:56:07 +0000 (17:56 +0000)
Tools/scripts/ndiff.py

index 6f0f9a9cf34fddec1c834d9898b58c209cc6f8af..f399338f48a3cb185871a2c03b211bf1642b8df8 100755 (executable)
@@ -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")