mirror of
https://github.com/python/cpython.git
synced 2026-01-04 14:32:21 +00:00
Fix by Dan Green and Corran Webster to support LongDateTime
values. Untested by me.
This commit is contained in:
parent
cebda6f5f0
commit
316778860f
1 changed files with 3 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue