Author: tross
Date: Mon Dec 1 11:29:54 2008
New Revision: 722191
URL: http://svn.apache.org/viewvc?rev=722191&view=rev
Log:
Replaced nonexistent type "double" with "float". In python, float
represents a double-precision floating point number.
Modified:
incubator/qpid/trunk/qpid/python/qmf/console.py
incubator/qpid/trunk/qpid/python/qpid/management.py
Modified: incubator/qpid/trunk/qpid/python/qmf/console.py
URL:
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/python/qmf/console.py?rev=722191&r1=722190&r2=722191&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/python/qmf/console.py (original)
+++ incubator/qpid/trunk/qpid/python/qmf/console.py Mon Dec 1 11:29:54 2008
@@ -630,7 +630,7 @@
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
Modified: incubator/qpid/trunk/qpid/python/qpid/management.py
URL:
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/python/qpid/management.py?rev=722191&r1=722190&r2=722191&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/python/qpid/management.py (original)
+++ incubator/qpid/trunk/qpid/python/qpid/management.py Mon Dec 1 11:29:54 2008
@@ -450,7 +450,7 @@
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