fixed python3 version for windows

This commit is contained in:
Adolfo Gómez 2021-01-11 01:33:32 +01:00
parent 4cc11d783a
commit 75221a4842

View File

@ -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