Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python 2.7 SyntaxError #41

Open
Sidaartha opened this issue Aug 12, 2020 · 1 comment · May be fixed by #42
Open

python 2.7 SyntaxError #41

Sidaartha opened this issue Aug 12, 2020 · 1 comment · May be fixed by #42

Comments

@Sidaartha
Copy link

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 gkorland added the bug label Aug 13, 2020
@gkorland gkorland linked a pull request Aug 13, 2020 that will close this issue
@gkorland
Copy link
Contributor

@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 gkorland added enhancement and removed bug labels Aug 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants