RedisJSON / redisjson-py

An extension to redis-py for using Redis' ReJSON module
https://redisjson.io
BSD 2-Clause "Simplified" License
160 stars 34 forks source link

python 2.7 SyntaxError #41

Open Sidaartha opened 4 years ago

Sidaartha commented 4 years ago
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Library/Python/2.7/site-packages/rejson/__init__.py", line 124, in <module>
    from .client import Client
  File "/Library/Python/2.7/site-packages/rejson/client.py", line 106
    def jsonget(self, name, *args, no_escape=False):
                                           ^
SyntaxError: invalid syntax

In Python 2, all positional arguments must come before any *args argument.

gkorland commented 4 years ago

@Sidaartha you can use this #42 PR (branch fix_2_7), but if we merge it we'll create a backward issue, see the failed test on the PR