diff options
| author | Rajith Muditha Attapattu <rajith@apache.org> | 2008-05-06 16:24:46 +0000 |
|---|---|---|
| committer | Rajith Muditha Attapattu <rajith@apache.org> | 2008-05-06 16:24:46 +0000 |
| commit | e4a3049c22b36171d204a8f84ddbcbf5accf797f (patch) | |
| tree | a3d2e6d03311286c868ed9bcf5f3eddc34f6ccb7 /python/qpid/codec010.py | |
| parent | 28701ccd27595848ca7dceeee651c57f92849830 (diff) | |
| download | qpid-python-e4a3049c22b36171d204a8f84ddbcbf5accf797f.tar.gz | |
This is a fix for QPID-1031
I added read/write methods for datetime that calls int64.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@653830 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid/codec010.py')
| -rw-r--r-- | python/qpid/codec010.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/python/qpid/codec010.py b/python/qpid/codec010.py index 1c76666de1..68573921d7 100644 --- a/python/qpid/codec010.py +++ b/python/qpid/codec010.py @@ -102,12 +102,16 @@ class Codec(Packer): def write_int64(self, n): self.pack("!q", n) + def read_datetime(self): + return self.read_uint64() + def write_datetime(self, n): + self.write_uint64(n) + def read_double(self): return self.unpack("!d") def write_double(self, d): self.pack("!d", d) - def read_vbin8(self): return self.read(self.read_uint8()) def write_vbin8(self, b): |
