[Python-checkins] CVS: python/dist/src/Lib getopt.py,1.9,1.10

Fred L. Drake fdrake@weyr.cnri.reston.va.us
2000年2月25日 11:14:10 -0500 (EST)


Update of /projects/cvsroot/python/dist/src/Lib
In directory weyr:/home/fdrake/projects/python/Lib
Modified Files:
	getopt.py 
Log Message:
Gerrit Holl's patch to move attribution from the docstring to a
comment. <gerrit@nl.linux.org>
Index: getopt.py
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Lib/getopt.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** getopt.py	2000年02月04日 15:39:29	1.9
--- getopt.py	2000年02月25日 16:14:08	1.10
***************
*** 8,14 ****
 provides a single function and an exception:
 
- Gerrit Holl <gerrit@nl.linux.org> moved the string-based exceptions
- to class-based exceptions.
- 
 getopt() -- Parse command line options
 GetoptError -- exception (class) raised with 'opt' attribute, which is the
--- 8,11 ----
***************
*** 18,21 ****
--- 15,21 ----
 # Long option support added by Lars Wirzenius <liw@iki.fi>.
 
+ # Gerrit Holl <gerrit@nl.linux.org> moved the string-based exceptions
+ # to class-based exceptions.
+ 
 import string
 
***************
*** 82,86 ****
 def do_longs(opts, opt, longopts, args):
 try:
! i = string.index(opt, '=')
 opt, optarg = opt[:i], opt[i+1:]
 except ValueError:
--- 82,86 ----
 def do_longs(opts, opt, longopts, args):
 try:
! i = opt.index('=')
 opt, optarg = opt[:i], opt[i+1:]
 except ValueError:

AltStyle によって変換されたページ (->オリジナル) /