mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Add os.path.supports_unicode_filenames for all platforms,
sys.getwindowsversion() on Windows (new enahanced Tim-proof <wink> version), and fix test_pep277.py in a few minor ways. Including doc and NEWS entries.
This commit is contained in:
		
							parent
							
								
									20eae69a9f
								
							
						
					
					
						commit
						8696ebcd28
					
				
					 11 changed files with 101 additions and 11 deletions
				
			
		|  | @ -7,11 +7,13 @@ | |||
| 
 | ||||
| import os | ||||
| import stat | ||||
| import sys | ||||
| 
 | ||||
| __all__ = ["normcase","isabs","join","splitdrive","split","splitext", | ||||
|            "basename","dirname","commonprefix","getsize","getmtime", | ||||
|            "getatime","islink","exists","isdir","isfile","ismount", | ||||
|            "walk","expanduser","expandvars","normpath","abspath","splitunc"] | ||||
|            "walk","expanduser","expandvars","normpath","abspath","splitunc", | ||||
|            "supports_unicode_filenames"] | ||||
| 
 | ||||
| # Normalize the case of a pathname and map slashes to backslashes. | ||||
| # Other normalizations (such as optimizing '../' away) are not done | ||||
|  | @ -476,3 +478,5 @@ def _abspath(path): | |||
| 
 | ||||
| # realpath is a no-op on systems without islink support | ||||
| realpath = abspath | ||||
| # Win9x family and earlier have no Unicode filename support. | ||||
| supports_unicode_filenames = sys.getwindowsversion()[3] >= 2 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Mark Hammond
						Mark Hammond