]> granicus.if.org Git - python/commitdiff
Patch #1025800: remove TeX quoting from verbatim section. Thanks Dima Dorfman!
authorJohannes Gijsbers <jlg@dds.nl>
Sat, 11 Sep 2004 15:47:30 +0000 (15:47 +0000)
committerJohannes Gijsbers <jlg@dds.nl>
Sat, 11 Sep 2004 15:47:30 +0000 (15:47 +0000)
Doc/lib/liboptparse.tex

index e565466a1d3866bc11ad68797efc0aac14e96c24..c99d2352bb10efe34157bc0679c4cb6910eed1c2 100644 (file)
@@ -596,7 +596,7 @@ Here's what \module{optparse}-based scripts typically look like:
 from optparse import OptionParser
 [...]
 def main():
-    usage = "usage: \%prog [-f] [-v] [-q] firstarg secondarg"
+    usage = "usage: %prog [-f] [-v] [-q] firstarg secondarg"
     parser = OptionParser(usage)
     parser.add_option("-f", "--file", type="string", dest="filename",
                       help="read data from FILENAME")
@@ -610,7 +610,7 @@ def main():
         parser.error("incorrect number of arguments")
 
     if options.verbose:
-        print "reading \%s..." \% options.filename
+        print "reading %s..." % options.filename
     [... go to work ...]
 
 if __name__ == "__main__":