Skip to content

Commit 05aa100

Browse files
committed
Use time.time for Python 2 compatibility
1 parent 024c4d9 commit 05aa100

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

diskcache/recipes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ def __exit__(self, *exc_info):
236236

237237

238238
def throttle(cache, count, seconds, name=None, expire=None, tag=None,
239-
time_func=time.monotonic, sleep_func=time.sleep):
239+
time_func=time.time, sleep_func=time.sleep):
240240
"""Decorator to throttle calls to function.
241241
242242
>>> import diskcache, time

0 commit comments

Comments
 (0)