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 using pyinstaller #731

Open
TomBenRu opened this issue Oct 22, 2024 · 0 comments
Open

SyntaxWarning using pyinstaller #731

TomBenRu opened this issue Oct 22, 2024 · 0 comments

Comments

@TomBenRu
Copy link

TomBenRu commented Oct 22, 2024

I get this warnings when using pyinstaller under Windows 11:
...\site-packages\pony\thirdparty\decorator.py:62: SyntaxWarning: invalid escape sequence '\s'
DEF = re.compile('\sdef\s([\w][\w\d])\s(')
...\site-packages\pony\orm\dbapiprovider.py:91: SyntaxWarning: invalid escape sequence '.'
version_re = re.compile('[0-9.]+')
I think that following changes in the relevant modules will solve this problem:
DEF = re.compile('\sdef\s([\w][\w\d])\s(') -> DEF = re.compile(r'\sdef\s([\w][\w\d])\s(')
version_re = re.compile('[0-9.]+') -> version_re = re.compile(r'[0-9.]+')

@TomBenRu TomBenRu changed the title pyinstaller syntaxwarning syntaxwarning Oct 23, 2024
@TomBenRu TomBenRu changed the title syntaxwarning SyntaxWarning Oct 23, 2024
@TomBenRu TomBenRu changed the title SyntaxWarning SyntaxWarning using pyinstaller Oct 23, 2024
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