mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 21:51:50 +00:00 
			
		
		
		
	[Patch #900071] Be case-insensitive when removing 'usage:' string
This commit is contained in:
		
							parent
							
								
									9303777f22
								
							
						
					
					
						commit
						56d7913bae
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -1033,7 +1033,7 @@ def set_usage (self, usage): | |||
|             self.usage = "%prog [options]" | ||||
|         elif usage is SUPPRESS_USAGE: | ||||
|             self.usage = None | ||||
|         elif usage.startswith("usage: "): | ||||
|         elif usage.lower().startswith("usage: "): | ||||
|             # for backwards compatibility with Optik 1.3 and earlier | ||||
|             self.usage = usage[7:] | ||||
|         else: | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andrew M. Kuchling
						Andrew M. Kuchling