Commit 3de78d71 authored by Sean Bleier's avatar Sean Bleier

Cast generator to tuple.

parent f15f5d40
......@@ -73,7 +73,7 @@ class BaseRedisCache(BaseCache):
**self.compressor_class_kwargs
)
redis_py_version = (int(part) for part in redis.__version__.split('.'))
redis_py_version = tuple(int(part) for part in redis.__version__.split('.'))
if redis_py_version < (3, 0, 0):
self.Redis = redis.StrictRedis
else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment