mirror of
				https://github.com/python/cpython.git
				synced 2025-10-30 21:21:22 +00:00 
			
		
		
		
	Fix SF #640094, on win32 getpass runs into unix_getpass
Make sure we have a UNIX-compatible termios. Apparently, McMillan Installer made a termios on windows which caused unix_getpass() to be used instead of win_getpass(). Will backport.
This commit is contained in:
		
							parent
							
								
									10263d6e6b
								
							
						
					
					
						commit
						201626e00f
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		|  | @ -104,7 +104,10 @@ def getuser(): | |||
| # Bind the name getpass to the appropriate function | ||||
| try: | ||||
|     import termios | ||||
| except ImportError: | ||||
|     # it's possible there is an incompatible termios from the | ||||
|     # McMillan Installer, make sure we have a UNIX-compatible termios | ||||
|     termios.tcgetattr, termios.tcsetattr | ||||
| except (ImportError, AttributeError): | ||||
|     try: | ||||
|         import msvcrt | ||||
|     except ImportError: | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Neal Norwitz
						Neal Norwitz