mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 07:31:38 +00:00 
			
		
		
		
	Patch #1025800: remove TeX quoting from verbatim section. Thanks Dima Dorfman!
This commit is contained in:
		
							parent
							
								
									f08437ca08
								
							
						
					
					
						commit
						c9c37ca62e
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -596,7 +596,7 @@ Here's what \module{optparse}-based scripts typically look like:
 | 
				
			||||||
from optparse import OptionParser
 | 
					from optparse import OptionParser
 | 
				
			||||||
[...]
 | 
					[...]
 | 
				
			||||||
def main():
 | 
					def main():
 | 
				
			||||||
    usage = "usage: \%prog [-f] [-v] [-q] firstarg secondarg"
 | 
					    usage = "usage: %prog [-f] [-v] [-q] firstarg secondarg"
 | 
				
			||||||
    parser = OptionParser(usage)
 | 
					    parser = OptionParser(usage)
 | 
				
			||||||
    parser.add_option("-f", "--file", type="string", dest="filename",
 | 
					    parser.add_option("-f", "--file", type="string", dest="filename",
 | 
				
			||||||
                      help="read data from FILENAME")
 | 
					                      help="read data from FILENAME")
 | 
				
			||||||
| 
						 | 
					@ -610,7 +610,7 @@ def main():
 | 
				
			||||||
        parser.error("incorrect number of arguments")
 | 
					        parser.error("incorrect number of arguments")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if options.verbose:
 | 
					    if options.verbose:
 | 
				
			||||||
        print "reading \%s..." \% options.filename
 | 
					        print "reading %s..." % options.filename
 | 
				
			||||||
    [... go to work ...]
 | 
					    [... go to work ...]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if __name__ == "__main__":
 | 
					if __name__ == "__main__":
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue