Mercurial > cpython-lru_cache-weakref
diff Doc/lib/liboptparse.tex @ 33454:3daa6633f017 legacy-trunk
Patch #1025800: remove TeX quoting from verbatim section. Thanks Dima Dorfman!
| author | Johannes Gijsbers <jlg@dds.nl> |
|---|---|
| date | Sat, 11 Sep 2004 15:47:30 +0000 |
| parents | 2b10e2b5e81e |
| children | 641152fb7d88 |
line wrap: on
line diff
--- a/Doc/lib/liboptparse.tex Fri Sep 10 19:33:00 2004 +0000 +++ b/Doc/lib/liboptparse.tex Sat Sep 11 15:47:30 2004 +0000 @@ -596,7 +596,7 @@ 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 @@ 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__":
