Take out forcing the description string to byte. It probably comes in as unicode, so leave it like that.

This commit is contained in:
Charles Haley 2012-12-28 09:10:51 +01:00
parent 4ad5c5f8f6
commit 06ae93270f

View File

@ -91,7 +91,7 @@ def create_service(desc, type, port, properties, add_hostname, use_ip_address=No
if add_hostname:
try:
desc += b' (on %s)'%hostname
desc += ' (on %s)'%hostname
except:
pass