[Python-checkins] python/dist/src/Tools/scripts ndiff.py,1.12,1.13

akuchling@users.sourceforge.net akuchling@users.sourceforge.net
Tue, 13 May 2003 10:56:10 -0700


Update of /cvsroot/python/python/dist/src/Tools/scripts
In directory sc8-pr-cvs1:/tmp/cvs-serv28732

Modified Files:
	ndiff.py 
Log Message:
Prevent script from allowing '-r12'

Index: ndiff.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/scripts/ndiff.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** ndiff.py	23 Sep 2001 04:06:05 -0000	1.12
--- ndiff.py	13 May 2003 17:56:07 -0000	1.13
***************
*** 102,106 ****
          if args:
              return fail("no args allowed with -r option")
!         if whichfile in "12":
              restore(whichfile)
              return 1
--- 102,106 ----
          if args:
              return fail("no args allowed with -r option")
!         if whichfile in ("1", "2"):
              restore(whichfile)
              return 1