hgext/zeroconf/Zeroconf.py
changeset 10343 b8e3aeb7542c
parent 10288 e0121ad90b57
child 10385 3dfc6b2cf916
--- a/hgext/zeroconf/Zeroconf.py	Sat Feb 06 17:31:49 2010 +0100
+++ b/hgext/zeroconf/Zeroconf.py	Sat Feb 06 17:31:54 2010 +0100
@@ -1060,16 +1060,16 @@
 			for key in properties:
 				value = properties[key]
 				if value is None:
-					suffix = ''.encode('utf-8')
+					suffix = ''
 				elif isinstance(value, str):
-					suffix = value.encode('utf-8')
+					suffix = value
 				elif isinstance(value, int):
 					if value:
 						suffix = 'true'
 					else:
 						suffix = 'false'
 				else:
-					suffix = ''.encode('utf-8')
+					suffix = ''
 				list.append('='.join((key, suffix)))
 			for item in list:
 				result = ''.join((result, struct.pack('!c', chr(len(item))), item))