mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	bpo-26329: update os.path.normpath documentation (GH-20138) (#27095)
(cherry picked from commit 66c5853406)
Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
			
			
This commit is contained in:
		
							parent
							
								
									c92b391dce
								
							
						
					
					
						commit
						47abf24036
					
				
					 2 changed files with 9 additions and 0 deletions
				
			
		|  | @ -349,6 +349,7 @@ def normpath(path): | |||
|     initial_slashes = path.startswith(sep) | ||||
|     # POSIX allows one or two initial slashes, but treats three or more | ||||
|     # as single slash. | ||||
|     # (see http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_13) | ||||
|     if (initial_slashes and | ||||
|         path.startswith(sep*2) and not path.startswith(sep*3)): | ||||
|         initial_slashes = 2 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Miss Islington (bot)
						Miss Islington (bot)