From 316778860faa417db231dafa7116ca3b2c71d641 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Tue, 18 Apr 2000 14:08:31 +0000 Subject: Fix by Dan Green and Corran Webster to support LongDateTime values. Untested by me. --- Mac/Lib/lib-toolbox/aepack.py | 3 +++ 1 file changed, 3 insertions(+) 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: -- cgit v0.12