From c47a6342e2ff9ee05da73408205ec967ac2dc452 Mon Sep 17 00:00:00 2001 From: Guy Korland Date: Sun, 6 Jan 2019 15:13:32 +0200 Subject: [PATCH] fix #17 upgrade support for redis-py 3.0.X --- rejson/client.py | 4 ++-- requirements.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rejson/client.py b/rejson/client.py index 0974e68..ea2a24c 100644 --- a/rejson/client.py +++ b/rejson/client.py @@ -1,7 +1,7 @@ import six import json from redis import StrictRedis -from redis.client import BasePipeline +from redis.client import Pipeline from redis._compat import (long, nativestr) from .path import Path @@ -257,5 +257,5 @@ def pipeline(self, transaction=True, shard_hint=None): p.setDecoder(self._decoder) return p -class Pipeline(BasePipeline, Client): +class Pipeline(Pipeline, Client): "Pipeline for ReJSONClient" diff --git a/requirements.txt b/requirements.txt index 95ec26a..7f59b02 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ hiredis==0.2.0 -redis==2.10.5 +redis>=3.0.0 six>=1.10