Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ dist: xenial
python:
- "2.7"
- "3.4"
- "3.6"
- "3.7"
- "3.8"
- "3.9"
- "3.10"
services: redis-server
install: pip install .
script: python setup.py test
9 changes: 8 additions & 1 deletion hot_redis/types.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@

import sys
import collections
import operator
import time
import uuid

if sys.version_info.major == 3 and sys.version_info.minor >= 10:
from collections.abc import MutableMapping
else:
from collections import MutableMapping

try:
# Python 3.
import queue
Expand Down Expand Up @@ -916,4 +922,5 @@ def most_common(self, n=None):
values = values[:n]
return values

collections.MutableMapping.register(MultiSet)

MutableMapping.register(MultiSet)