~statik/ubuntu/maverick/protobuf/A

« back to all changes in this revision

Viewing changes to python/google/protobuf/internal/encoder.py

  • Committer: Bazaar Package Importer
  • Author(s): Steve Kowalik
  • Date: 2010-02-11 11:13:19 UTC
  • mfrom: (2.2.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100211111319-zdn8hmw0gh8s4cf8
Tags: 2.2.0a-0.1ubuntu1
* Merge from Debian testing.
* Remaining Ubuntu changes:
  - Don't use python2.4.
* Ubuntu changes dropped:
  - Disable death tests on Itanium, fixed upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
123
123
 
124
124
  def AppendFloatNoTag(self, value):
125
125
    """Appends a floating-point number to our buffer."""
126
 
    self._stream.AppendRawBytes(struct.pack('f', value))
 
126
    self._stream.AppendRawBytes(
 
127
        struct.pack(wire_format.FORMAT_FLOAT_LITTLE_ENDIAN, value))
127
128
 
128
129
  def AppendDoubleNoTag(self, value):
129
130
    """Appends a double-precision floating-point number to our buffer."""
130
 
    self._stream.AppendRawBytes(struct.pack('d', value))
 
131
    self._stream.AppendRawBytes(
 
132
        struct.pack(wire_format.FORMAT_DOUBLE_LITTLE_ENDIAN, value))
131
133
 
132
134
  def AppendBoolNoTag(self, value):
133
135
    """Appends a boolean to our buffer."""