Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

timestamp check does not allow long #23

Closed
nonnib opened this issue May 22, 2013 · 2 comments
Closed

timestamp check does not allow long #23

nonnib opened this issue May 22, 2013 · 2 comments
Assignees
Milestone

Comments

@nonnib
Copy link

nonnib commented May 22, 2013

if not (timestamp is None or isinstance(timestamp, int)):
    raise TypeError("'timestamp' must be an integer or None")

This causes issues for me in Python 2.7.3 on Windows because this is long:

timestamp=1369168852994

Suggested fix:

if not (timestamp is None or isinstance(timestamp, (int, long))):
    raise TypeError("'timestamp' must be an integer or None")
@ghost ghost assigned wbolster May 22, 2013
@wbolster
Copy link
Member

Confirming, I'm working on a fix.

wbolster added a commit that referenced this issue May 22, 2013
wbolster added a commit that referenced this issue May 22, 2013
See issue #23.
@wbolster
Copy link
Member

Thanks for the report. The fix will be in the upcoming 0.5 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants