mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	Issue #16102: Make uuid._netbios_getnode() work again on Python 3.
This commit is contained in:
		
							parent
							
								
									e7275ffa4c
								
							
						
					
					
						commit
						6f50b810b7
					
				
					 2 changed files with 3 additions and 1 deletions
				
			
		|  | @ -406,7 +406,7 @@ def _netbios_getnode(): | |||
|         if win32wnet.Netbios(ncb) != 0: | ||||
|             continue | ||||
|         status._unpack() | ||||
|         bytes = map(ord, status.adapter_address) | ||||
|         bytes = status.adapter_address | ||||
|         return ((bytes[0]<<40) + (bytes[1]<<32) + (bytes[2]<<24) + | ||||
|                 (bytes[3]<<16) + (bytes[4]<<8) + bytes[5]) | ||||
| 
 | ||||
|  |  | |||
|  | @ -27,6 +27,8 @@ Core and Builtins | |||
| Library | ||||
| ------- | ||||
| 
 | ||||
| - Issue #16102: Make uuid._netbios_getnode() work again on Python 3. | ||||
| 
 | ||||
| - Issue #18109: os.uname() now decodes fields from the locale encoding, and | ||||
|   socket.gethostname() now decodes the hostname from the locale encoding, | ||||
|   instead of using the UTF-8 encoding in strict mode. | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Serhiy Storchaka
						Serhiy Storchaka