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

SyntaxWarning: invalid escape sequence '\d' #21

Open
mgaudet opened this issue Jun 3, 2024 · 4 comments
Open

SyntaxWarning: invalid escape sequence '\d' #21

mgaudet opened this issue Jun 3, 2024 · 4 comments

Comments

@mgaudet
Copy link

mgaudet commented Jun 3, 2024

Running pernosco-submit master (3494f88), I'm getting the following warning:

/home/matthew/tools/pernosco-submit/pernosco-submit:111: SyntaxWarning: invalid escape sequence '\d'
  version_re = re.compile(b'<meta name="policy-version" content="(\d+)">')

Python 3 is Python 3.12.3 (main, Apr 10 2024, 05:33:47) [GCC 13.2.0] on linux on my system.

@khuey
Copy link
Member

khuey commented Jun 6, 2024

Does changing the b prefix on the string to r make it go away?

@mgaudet
Copy link
Author

mgaudet commented Jun 6, 2024

Sure does.

@mgaudet
Copy link
Author

mgaudet commented Jun 6, 2024

but then submitting it says

Unable to determine privacy policy version!
You must consent to the current privacy policy at https://pernos.co/privacy. Do you? (yes/no) yes

@khuey
Copy link
Member

khuey commented Jun 6, 2024

Yeah, ok. I'll install 3.12 and fix it properly :)

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

2 participants