summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Ross <tross@apache.org>2008-12-01 19:29:54 +0000
committerTed Ross <tross@apache.org>2008-12-01 19:29:54 +0000
commit77fc3858671839e143f5617c292ee0f407e155ac (patch)
treed9a3dc9c68f1d1a19fdd5c897a24437e7938fbd5
parent8d2d0369b7b7ee358ca1f6e7dd80c1eeb48d8e8a (diff)
downloadqpid-python-77fc3858671839e143f5617c292ee0f407e155ac.tar.gz
Replaced nonexistent type "double" with "float". In python, float
represents a double-precision floating point number. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@722191 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--qpid/python/qmf/console.py2
-rw-r--r--qpid/python/qpid/management.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/qpid/python/qmf/console.py b/qpid/python/qmf/console.py
index 9f5f621ba0..827a28d891 100644
--- a/qpid/python/qmf/console.py
+++ b/qpid/python/qmf/console.py
@@ -630,7 +630,7 @@ class Session:
elif typecode == 10: value.encode (codec) # REF
elif typecode == 11: codec.write_uint8 (int(value)) # BOOL
elif typecode == 12: codec.write_float (float(value)) # FLOAT
- elif typecode == 13: codec.write_double (double(value)) # DOUBLE
+ elif typecode == 13: codec.write_double (float(value)) # DOUBLE
elif typecode == 14: codec.write_uuid (value.bytes) # UUID
elif typecode == 15: codec.write_map (value) # FTABLE
elif typecode == 16: codec.write_int8 (int(value)) # S8
diff --git a/qpid/python/qpid/management.py b/qpid/python/qpid/management.py
index 4a87d2d533..477f3e8f2b 100644
--- a/qpid/python/qpid/management.py
+++ b/qpid/python/qpid/management.py
@@ -450,7 +450,7 @@ class managementClient:
elif typecode == 12: # FLOAT
codec.write_float (float (value))
elif typecode == 13: # DOUBLE
- codec.write_double (double (value))
+ codec.write_double (float (value))
elif typecode == 14: # UUID
codec.write_uuid (value)
elif typecode == 15: # FTABLE