mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Be consistent with the functions in the posix/nt module: docstrings
don't include a " -> None" for functions that have no return value.
This commit is contained in:
		
							parent
							
								
									2c22e85ae7
								
							
						
					
					
						commit
						cadb9eb8f6
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -198,7 +198,7 @@ def _get_exports_list(module): | ||||||
| # (Inspired by Eric Raymond; the doc strings are mostly his) | # (Inspired by Eric Raymond; the doc strings are mostly his) | ||||||
| 
 | 
 | ||||||
| def makedirs(name, mode=0777): | def makedirs(name, mode=0777): | ||||||
|     """makedirs(path [, mode=0777]) -> None |     """makedirs(path [, mode=0777]) | ||||||
| 
 | 
 | ||||||
|     Super-mkdir; create a leaf directory and all intermediate ones. |     Super-mkdir; create a leaf directory and all intermediate ones. | ||||||
|     Works like mkdir, except that any intermediate path segment (not |     Works like mkdir, except that any intermediate path segment (not | ||||||
|  | @ -214,7 +214,7 @@ def makedirs(name, mode=0777): | ||||||
|     mkdir(name, mode) |     mkdir(name, mode) | ||||||
| 
 | 
 | ||||||
| def removedirs(name): | def removedirs(name): | ||||||
|     """removedirs(path) -> None |     """removedirs(path) | ||||||
| 
 | 
 | ||||||
|     Super-rmdir; remove a leaf directory and empty all intermediate |     Super-rmdir; remove a leaf directory and empty all intermediate | ||||||
|     ones.  Works like rmdir except that, if the leaf directory is |     ones.  Works like rmdir except that, if the leaf directory is | ||||||
|  | @ -236,7 +236,7 @@ def removedirs(name): | ||||||
|         head, tail = path.split(head) |         head, tail = path.split(head) | ||||||
| 
 | 
 | ||||||
| def renames(old, new): | def renames(old, new): | ||||||
|     """renames(old, new) -> None |     """renames(old, new) | ||||||
| 
 | 
 | ||||||
|     Super-rename; create directories as necessary and delete any left |     Super-rename; create directories as necessary and delete any left | ||||||
|     empty.  Works like rename, except creation of any intermediate |     empty.  Works like rename, except creation of any intermediate | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Fred Drake
						Fred Drake