diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2000-04-18 14:08:31 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2000-04-18 14:08:31 (GMT) |
commit | 316778860faa417db231dafa7116ca3b2c71d641 (patch) | |
tree | d932a23e1c5a4621cd1f739bee44ac486895b1bb /Mac/Lib | |
parent | cebda6f5f0b87a4b7b347e3aab33aaffba09a1ad (diff) | |
download | cpython-316778860faa417db231dafa7116ca3b2c71d641.zip cpython-316778860faa417db231dafa7116ca3b2c71d641.tar.gz cpython-316778860faa417db231dafa7116ca3b2c71d641.tar.bz2 |
Fix by Dan Green and Corran Webster to support LongDateTime
values. Untested by me.
Diffstat (limited to 'Mac/Lib')
-rw-r--r-- | Mac/Lib/lib-toolbox/aepack.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Mac/Lib/lib-toolbox/aepack.py b/Mac/Lib/lib-toolbox/aepack.py index 94a0f53..82f1045 100644 --- a/Mac/Lib/lib-toolbox/aepack.py +++ b/Mac/Lib/lib-toolbox/aepack.py @@ -162,6 +162,9 @@ def unpack(desc): return mkkeyword(desc.data) if t == typeLongInteger: return struct.unpack('l', desc.data)[0] + if t == typeLongDateTime: + a, b = struct.unpack('lL', desc.data) + return (long(a) << 32) + b if t == typeNull: return None if t == typeMagnitude: |