[Patches] moving acknowledgements from docstrings to comments

Gerrit Holl Gerrit <gerrit@nl.linux.org>
Fri, 25 Feb 2000 16:41:20 +0100


--G4iJoqBmSsgzjUCe
Content-Type: text/plain; charset=us-ascii

Hello,

I think acknowledgements do not belong in docstrings. This patch only
changes this for getopt.py; I wouldn't like to do it for every module
and find out you don't agree afterwards. Do you agree in changing this?

It also changes string.index(opt, '=') to opt.index('=').

DISCLAIMER

I confirm that, to the best of my knowledge and belief, this
contribution is free of any claims of third parties under
copyright, patent or other rights or interests ("claims").  To
the extent that I have any such claims, I hereby grant to CNRI a
nonexclusive, irrevocable, royalty-free, worldwide license to
reproduce, distribute, perform and/or display publicly, prepare
derivative versions, and otherwise use this contribution as part
of the Python software and its related documentation, or any
derivative versions thereof, at no cost to CNRI or its licensed
users, and to authorize others to do so.

I acknowledge that CNRI may, at its sole discretion, decide
whether or not to incorporate this contribution in the Python
software and its related documentation.  I further grant CNRI
permission to use my name and other identifying information
provided to CNRI by me for use in connection with the Python
software and its related documentation.

regards,
Gerrit.

-- 
Comparison Python GUI's: http://www.nl.linux.org/~gerrit/gui.html
Please comment!

--G4iJoqBmSsgzjUCe
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="getopt.py.diff"

*** getopt.py	Fri Feb 25 16:25:59 2000
--- /tmp/getopt.py	Fri Feb 25 16:24:48 2000
***************
*** 7,12 ****
--- 7,15 ----
  may be used as well via an optional third argument.  This module
  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
  option involved with the exception.
***************
*** 14,22 ****
  
  # 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
  
  class GetoptError(Exception):
--- 17,22 ----
***************
*** 81,87 ****
  
  def do_longs(opts, opt, longopts, args):
      try:
!         i = opt.index('=')
          opt, optarg = opt[:i], opt[i+1:]
      except ValueError:
          optarg = None
--- 81,87 ----
  
  def do_longs(opts, opt, longopts, args):
      try:
!         i = string.index(opt, '=')
          opt, optarg = opt[:i], opt[i+1:]
      except ValueError:
          optarg = None

--G4iJoqBmSsgzjUCe--