diff options
| author | Rafael H. Schloming <rhs@apache.org> | 2010-09-10 14:45:19 +0000 |
|---|---|---|
| committer | Rafael H. Schloming <rhs@apache.org> | 2010-09-10 14:45:19 +0000 |
| commit | 14be6a9380cad36521bf2d704cbc70191b9b74e0 (patch) | |
| tree | 9df280f35e280baac37c96cc7eaf874005620d40 /extras | |
| parent | cde67e2e3e6a0b49f153ce61b22f0cce273e51b0 (diff) | |
| download | qpid-python-14be6a9380cad36521bf2d704cbc70191b9b74e0.tar.gz | |
fixed usage of UUID
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@995810 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'extras')
| -rw-r--r-- | extras/qmf/src/py/qmf/console.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/extras/qmf/src/py/qmf/console.py b/extras/qmf/src/py/qmf/console.py index 80684de0d3..b428a16847 100644 --- a/extras/qmf/src/py/qmf/console.py +++ b/extras/qmf/src/py/qmf/console.py @@ -1356,7 +1356,7 @@ class Session: elif typecode == 11: return False elif typecode == 12: return 0.0 elif typecode == 13: return 0.0 - elif typecode == 14: return UUID([0 for i in range(16)]) + elif typecode == 14: return UUID(bytes=[0 for i in range(16)]) elif typecode == 15: return {} elif typecode == 16: return 0 elif typecode == 17: return 0 @@ -1651,7 +1651,7 @@ class ClassKey: h3 = int(hexValues[3], 16) h4 = int(hexValues[4][0:4], 16) h5 = int(hexValues[4][4:12], 16) - self.hash = UUID(struct.pack("!LHHHHL", h0, h1, h2, h3, h4, h5)) + self.hash = UUID(bytes=struct.pack("!LHHHHL", h0, h1, h2, h3, h4, h5)) except: raise Exception("Invalid ClassKey format") elif constructor.__class__ == dict: @@ -1668,7 +1668,7 @@ class ClassKey: codec = constructor self.pname = str(codec.read_str8()) self.cname = str(codec.read_str8()) - self.hash = UUID(codec.read_bin128()) + self.hash = UUID(bytes=codec.read_bin128()) # old V1 codec did not include "type" self.type = None |
