Skip to content

Commit

Permalink
Merge pull request #21 from esnet/int-or-long
Browse files Browse the repository at this point in the history
Int or long in Event.timestamp_from_arg()
  • Loading branch information
montegoode committed Oct 3, 2016
2 parents ff17c63 + fe4303f commit 3de1c7b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/source/conf.py
Expand Up @@ -78,9 +78,9 @@
# built documents.
#
# The short X.Y version.
version = '0.4.7'
version = '0.4.8'
# The full version, including alpha/beta/rc tags.
release = '0.4.7'
release = '0.4.8'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
2 changes: 1 addition & 1 deletion pypond/event.py
Expand Up @@ -252,7 +252,7 @@ def timestamp_from_arg(arg):
EventException
Does not accept unaware datetime objects.
"""
if isinstance(arg, int):
if isinstance(arg, six.integer_types):
return dt_from_ms(arg)
elif isinstance(arg, datetime.datetime):
if not dt_is_aware(arg):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -22,7 +22,7 @@

setup(
name='pypond',
version='0.4.7',
version='0.4.8',
description='Python implementation of the Pond JavaScript timeseries library (https://github.com/esnet/pond).', # pylint: disable=line-too-long
long_description=DESCRIPTION,
author='Monte M. Goode',
Expand Down

0 comments on commit 3de1c7b

Please sign in to comment.