Parcourir la source

Coerce bytearray to string


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/f2f200910@167 e5f2f494-b856-4b98-b285-d166d9295462
Shane Kerr il y a 15 ans
Parent
commit
cb03478cdc
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/lib/cc/python/ISC/CC/Message.py

+ 1 - 1
src/lib/cc/python/ISC/CC/Message.py

@@ -160,7 +160,7 @@ def _decode_item(data):
         data = data[length:]
 
     if item_type == _ITEM_DATA:
-        value = item
+        value = item.decode()
     elif item_type == _ITEM_HASH:
         value = _decode_hash(item)
     elif item_type == _ITEM_LIST: