summaryrefslogtreecommitdiffstats
path: root/Mac/Lib/lib-toolbox
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2000-04-18 14:08:31 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2000-04-18 14:08:31 (GMT)
commit316778860faa417db231dafa7116ca3b2c71d641 (patch)
treed932a23e1c5a4621cd1f739bee44ac486895b1bb /Mac/Lib/lib-toolbox
parentcebda6f5f0b87a4b7b347e3aab33aaffba09a1ad (diff)
downloadcpython-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/lib-toolbox')
-rw-r--r--Mac/Lib/lib-toolbox/aepack.py3
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: