Skip to content
This repository has been archived by the owner on Aug 4, 2020. It is now read-only.

Commit

Permalink
Avoid NameError in py2.4 when unpacking DateType
Browse files Browse the repository at this point in the history
  • Loading branch information
thobbs committed Jan 23, 2012
1 parent 6767b63 commit 068cc7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pycassa/marshal.py
Expand Up @@ -242,7 +242,7 @@ def unpacker_for(typestr):
if _have_struct:
return lambda v: datetime.fromtimestamp(_long_packer.unpack(v)[0] / 1e6)
else:
return lambda v: datetime.fromtimestamp(_struct.unpack('>q', v)[0] / 1e6)
return lambda v: datetime.fromtimestamp(struct.unpack('>q', v)[0] / 1e6)

elif data_type == 'BooleanType':
if _have_struct:
Expand Down

0 comments on commit 068cc7a

Please sign in to comment.