diff options
author | Alan Conway <aconway@apache.org> | 2006-09-27 19:50:23 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2006-09-27 19:50:23 +0000 |
commit | caca23c5dc055d985fecfe188573104bc707ad9d (patch) | |
tree | 154c0bbd4c7bca70080de28116b5654491657906 /python/qpid/connection.py | |
parent | 9d718c2348708b0b27ce9fb9fcbf05c4b0a997cc (diff) | |
download | qpid-python-caca23c5dc055d985fecfe188573104bc707ad9d.tar.gz |
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@450556 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid/connection.py')
-rw-r--r-- | python/qpid/connection.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/python/qpid/connection.py b/python/qpid/connection.py index f4d0817e60..fc6c147f2b 100644 --- a/python/qpid/connection.py +++ b/python/qpid/connection.py @@ -20,7 +20,7 @@ to read and write Frame objects. This could be used by a client, server, or even a proxy implementation. """ -import socket, codec +import socket, codec,logging from cStringIO import StringIO from spec import load, pythonize from codec import EOF @@ -240,8 +240,10 @@ class Header(Payload): properties = {} for b, f in zip(bits, klass.fields): if b: - properties[f.name] = c.decode(f.type) - + # Note: decode returns a unicode u'' string but only + # plain '' strings can be used as keywords so we need to + # stringify the names. + properties[str(f.name)] = c.decode(f.type) return Header(klass, weight, size, **properties) def __str__(self): |