[Python-checkins] python/dist/src/Doc/lib liboptparse.tex, 1.12, 1.13

fdrake at projects.sourceforge.net fdrake at projects.sourceforge.net
Tue Jan 27 16:08:08 EST 2004


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28918a

Modified Files:
	liboptparse.tex 
Log Message:
fix whitespace style (inconsistent with the rest of the docs)


Index: liboptparse.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/liboptparse.tex,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** liboptparse.tex	26 Jan 2004 19:39:13 -0000	1.12
--- liboptparse.tex	27 Jan 2004 21:08:04 -0000	1.13
***************
*** 30,34 ****
                    help="don't print status messages to stdout")
  
! (options, args) = parser.parse_args()
  \end{verbatim}
  
--- 30,34 ----
                    help="don't print status messages to stdout")
  
! options, args = parser.parse_args()
  \end{verbatim}
  
***************
*** 303,307 ****
  \begin{verbatim}
  args = ["-f", "foo.txt"]
! (options, args) = parser.parse_args(args)
  \end{verbatim}
  
--- 303,307 ----
  \begin{verbatim}
  args = ["-f", "foo.txt"]
! options, args = parser.parse_args(args)
  \end{verbatim}
  
***************
*** 336,340 ****
  
  \begin{verbatim}
! (options, args) = parser.parse_args(["-n42"])
  print options.num
  \end{verbatim}
--- 336,340 ----
  
  \begin{verbatim}
! options, args = parser.parse_args(["-n42"])
  print options.num
  \end{verbatim}
***************
*** 606,610 ****
                        action="store_false", dest="verbose")
  
!     (options, args) = parser.parse_args()
      if len(args) != 1:
          parser.error("incorrect number of arguments")
--- 606,610 ----
                        action="store_false", dest="verbose")
  
!     options, args = parser.parse_args()
      if len(args) != 1:
          parser.error("incorrect number of arguments")
***************
*** 1272,1276 ****
  
  \begin{verbatim}
! def my_callback (option, opt, value, parser):
      pass
  \end{verbatim}
--- 1272,1276 ----
  
  \begin{verbatim}
! def my_callback(option, opt, value, parser):
      pass
  \end{verbatim}
***************
*** 1292,1296 ****
  
  \begin{verbatim}
! def record_foo_seen (option, opt, value, parser):
      parser.saw_foo = 1
  
--- 1292,1296 ----
  
  \begin{verbatim}
! def record_foo_seen(option, opt, value, parser):
      parser.saw_foo = 1
  
***************
*** 1304,1308 ****
  
  \begin{verbatim}
! def check_order (option, opt, value, parser):
      if parser.values.b:
          raise OptionValueError("can't use -a after -b")
--- 1304,1308 ----
  
  \begin{verbatim}
! def check_order(option, opt, value, parser):
      if parser.values.b:
          raise OptionValueError("can't use -a after -b")
***************
*** 1319,1323 ****
  
  \begin{verbatim}
! def check_order (option, opt, value, parser):
      if parser.values.b:
          raise OptionValueError("can't use %s after -b" % opt)
--- 1319,1323 ----
  
  \begin{verbatim}
! def check_order(option, opt, value, parser):
      if parser.values.b:
          raise OptionValueError("can't use %s after -b" % opt)
***************
*** 1335,1339 ****
  
  \begin{verbatim}
! def check_moon (option, opt, value, parser):
      if is_full_moon():
          raise OptionValueError("%s option invalid when moon full" % opt)
--- 1335,1339 ----
  
  \begin{verbatim}
! def check_moon(option, opt, value, parser):
      if is_full_moon():
          raise OptionValueError("%s option invalid when moon full" % opt)
***************
*** 1359,1363 ****
  
  \begin{verbatim}
! def store_value (option, opt, value, parser):
      setattr(parser.values, option.dest, value)
  ...
--- 1359,1363 ----
  
  \begin{verbatim}
! def store_value(option, opt, value, parser):
      setattr(parser.values, option.dest, value)
  ...
***************
*** 1406,1410 ****
  
  \begin{verbatim}
! def varargs (option, opt, value, parser):
      assert value is None
      done = 0
--- 1406,1410 ----
  
  \begin{verbatim}
! def varargs(option, opt, value, parser):
      assert value is None
      done = 0
***************
*** 1464,1469 ****
  
  \begin{verbatim}
! def check_foo (option : Option, opt : string, value : string)
!                -> foo
  \end{verbatim}
  
--- 1464,1469 ----
  
  \begin{verbatim}
! def check_foo(option : Option, opt : string, value : string)
!               -> foo
  \end{verbatim}
  
***************
*** 1499,1503 ****
  
  \begin{verbatim}
! def check_complex (option, opt, value):
      try:
          return complex(value)
--- 1499,1503 ----
  
  \begin{verbatim}
! def check_complex(option, opt, value):
      try:
          return complex(value)
***************
*** 1510,1514 ****
  
  \begin{verbatim}
! class MyOption (Option):
      TYPES = Option.TYPES + ("complex",)
      TYPE_CHECKER = copy(Option.TYPE_CHECKER)
--- 1510,1514 ----
  
  \begin{verbatim}
! class MyOption(Option):
      TYPES = Option.TYPES + ("complex",)
      TYPE_CHECKER = copy(Option.TYPE_CHECKER)
***************
*** 1601,1605 ****
  
  \begin{verbatim}
! class MyOption (Option):
  
      ACTIONS = Option.ACTIONS + ("extend",)
--- 1601,1605 ----
  
  \begin{verbatim}
! class MyOption(Option):
  
      ACTIONS = Option.ACTIONS + ("extend",)
***************
*** 1607,1611 ****
      TYPED_ACTIONS = Option.TYPED_ACTIONS + ("extend",)
  
!     def take_action (self, action, dest, opt, value, values, parser):
          if action == "extend":
              lvalue = value.split(",")
--- 1607,1611 ----
      TYPED_ACTIONS = Option.TYPED_ACTIONS + ("extend",)
  
!     def take_action(self, action, dest, opt, value, values, parser):
          if action == "extend":
              lvalue = value.split(",")




More information about the Python-checkins mailing list