mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 21:51:50 +00:00 
			
		
		
		
	Fix for boundary case (Jack)
This commit is contained in:
		
							parent
							
								
									7806c16650
								
							
						
					
					
						commit
						d6a111e2dd
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		|  | @ -45,7 +45,10 @@ def split(s): | |||
| 	colon = 0 | ||||
| 	for i in range(len(s)): | ||||
| 		if s[i] == ':': colon = i+1 | ||||
| 	return s[:colon-1], s[colon:] | ||||
| 	path, file = s[:colon-1], s[colon:] | ||||
| 	if path and not ':' in path: | ||||
| 		path = path + ':' | ||||
| 	return path, file | ||||
| 
 | ||||
| 
 | ||||
| # Split a path in root and extension. | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Guido van Rossum
						Guido van Rossum