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

Commit

Permalink
Fix NameError when timestamp is used for DateType
Browse files Browse the repository at this point in the history
  • Loading branch information
thobbs committed Jan 23, 2012
1 parent 82e5010 commit 6767b63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pycassa/marshal.py
Expand Up @@ -71,7 +71,7 @@ def _to_timestamp(v):
if type(v) not in _number_types: if type(v) not in _number_types:
raise TypeError('DateType arguments must be a datetime or timestamp') raise TypeError('DateType arguments must be a datetime or timestamp')


converted = value * 1e6 converted = v * 1e6
return converted return converted


def get_composite_packer(typestr): def get_composite_packer(typestr):
Expand Down

0 comments on commit 6767b63

Please sign in to comment.