mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 07:31:38 +00:00 
			
		
		
		
	os: Include posix functions in os.__all__. Closes issue #18554.
Patch by Ronald Oussoren.
This commit is contained in:
		
							parent
							
								
									4f6355f861
								
							
						
					
					
						commit
						97e2e06af8
					
				
					 3 changed files with 14 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -61,6 +61,10 @@ def _get_exports_list(module):
 | 
			
		|||
    except ImportError:
 | 
			
		||||
        pass
 | 
			
		||||
 | 
			
		||||
    import posix
 | 
			
		||||
    __all__.extend(_get_exports_list(posix))
 | 
			
		||||
    del posix
 | 
			
		||||
 | 
			
		||||
elif 'nt' in _names:
 | 
			
		||||
    name = 'nt'
 | 
			
		||||
    linesep = '\r\n'
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue