Merge pull request #41288 from liquidgecka/develop

Only deal with integer bits in win_service.py.
This commit is contained in:
Mike Place 2017-05-17 11:54:36 -05:00 committed by GitHub
commit eecf2a81b7

View File

@ -717,7 +717,7 @@ def modify(name,
if service_type is not win32service.SERVICE_NO_CHANGE:
flags = list()
for bit in SERVICE_TYPE:
if service_type & bit:
if isinstance(bit, int) and service_type & bit:
flags.append(SERVICE_TYPE[bit])
changes['ServiceType'] = flags if flags else service_type