Skip to content

Commit ec4f280

Browse files
committed
Fixes an edge case for timestamps on Python 2.7.
1 parent 00dfc59 commit ec4f280

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pendulum/utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# -*- coding: utf-8 -*-
22

3+
from ._compat import long
34

4-
class CallableTimestamp(int):
5+
6+
class CallableTimestamp(long):
57
"""
68
An int object representing a timestamp that
79
returns a float when called.

0 commit comments

Comments
 (0)