redisjson-py icon indicating copy to clipboard operation
redisjson-py copied to clipboard

python 2.7 SyntaxError

Open Sidaartha opened this issue 4 years ago • 1 comments

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.

Sidaartha avatar Aug 12 '20 20:08 Sidaartha

@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

gkorland avatar Aug 13 '20 07:08 gkorland