forked from shaba/openuds
fixed python3 version for windows
This commit is contained in:
parent
4cc11d783a
commit
75221a4842
@ -129,10 +129,6 @@ def getHostName():
|
|||||||
In fact, it's a wrapper for socket.gethostname()
|
In fact, it's a wrapper for socket.gethostname()
|
||||||
'''
|
'''
|
||||||
hostname = socket.gethostname()
|
hostname = socket.gethostname()
|
||||||
if 'win32' in sys.platform:
|
|
||||||
hostname = hostname.decode(sys_fs_enc)
|
|
||||||
|
|
||||||
hostname = six.text_type(hostname)
|
|
||||||
logger.info('Hostname: %s', hostname)
|
logger.info('Hostname: %s', hostname)
|
||||||
return hostname
|
return hostname
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user