mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Don't include slash in search string; it's OS-specific.
This commit is contained in:
		
							parent
							
								
									fff093fa7f
								
							
						
					
					
						commit
						b6d2f3e07d
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -8,7 +8,7 @@ | ||||||
| _showwarning = None | _showwarning = None | ||||||
| 
 | 
 | ||||||
| def showwarning(message, category, filename, lineno, file=None): | def showwarning(message, category, filename, lineno, file=None): | ||||||
|     i = filename.find("Lib/") |     i = filename.find("Lib") | ||||||
|     filename = filename[i:] |     filename = filename[i:] | ||||||
|     print "%s:%s: %s: %s" % (filename, lineno, category.__name__, message) |     print "%s:%s: %s: %s" % (filename, lineno, category.__name__, message) | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Jeremy Hylton
						Jeremy Hylton