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

SyntaxError invalid escape sequence "\s" #9

Closed
stanislavlevin opened this issue Jul 2, 2018 · 0 comments
Closed

SyntaxError invalid escape sequence "\s" #9

stanislavlevin opened this issue Jul 2, 2018 · 0 comments

Comments

@stanislavlevin
Copy link
Contributor

I run tests on another python module(custodia), which depends on this one, in such a way:

tox.py3 --sitepackages -v -e py36-noextras -- -v

From custodia's conftest.py:

# deprecated APIs raise an exception
warnings.simplefilter('error', category=DeprecationWarning)

An error message:

    import requests_gssapi
    /usr/lib/python3/site-packages/requests_gssapi/__init__.py:17: in <module>
    from .gssapi_ import HTTPSPNEGOAuth, REQUIRED, OPTIONAL, DISABLED  # noqa
E     File "/usr/lib/python3/site-packages/requests_gssapi/gssapi_.py", line 70
E       regex = re.compile('(?:.*,)*\s*Negotiate\s*([^,]*),?', re.I)
E                         ^
E   SyntaxError: invalid escape sequence \s
stanislavlevin added a commit to stanislavlevin/requests-gssapi that referenced this issue Jul 2, 2018
To prevent interference of escaping in strings with escaping in regex
strings regex one should be marked as raw.

Resolves: pythongssapi#9
frozencemetery pushed a commit that referenced this issue Jul 5, 2018
To prevent interference of escaping in strings with escaping in regex
strings regex one should be marked as raw.

Resolves: #9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant