summaryrefslogtreecommitdiff
path: root/python/qpid/codec.py
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2008-04-22 16:11:34 +0000
committerRafael H. Schloming <rhs@apache.org>2008-04-22 16:11:34 +0000
commite06aa805cfe24b8edf619a6a535883f94589ac35 (patch)
tree4b886461816ca97127aae8a9639ddad74d77bd46 /python/qpid/codec.py
parent61959e29ee69f9cebb61b845272eededaec6f11e (diff)
downloadqpid-python-e06aa805cfe24b8edf619a6a535883f94589ac35.tar.gz
QPID-947: update cpp and python management to 0-10 final
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@650565 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid/codec.py')
-rw-r--r--python/qpid/codec.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/qpid/codec.py b/python/qpid/codec.py
index dfa74b6a2f..8026b209dc 100644
--- a/python/qpid/codec.py
+++ b/python/qpid/codec.py
@@ -26,7 +26,7 @@ fields.
The unit test for this module is located in tests/codec.py
"""
-import re, qpid, spec
+import re, qpid, spec08
from cStringIO import StringIO
from struct import *
from reference import ReferenceId
@@ -156,7 +156,7 @@ class Codec:
"""
calls the appropriate encode function e.g. encode_octet, encode_short etc.
"""
- if isinstance(type, spec.Struct):
+ if isinstance(type, spec08.Struct):
self.encode_struct(type, value)
else:
getattr(self, "encode_" + type)(value)
@@ -165,7 +165,7 @@ class Codec:
"""
calls the appropriate decode function e.g. decode_octet, decode_short etc.
"""
- if isinstance(type, spec.Struct):
+ if isinstance(type, spec08.Struct):
return self.decode_struct(type)
else:
return getattr(self, "decode_" + type)()