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 on Python 3.12.3 #46

Closed
iugov opened this issue May 17, 2024 · 2 comments
Closed

SyntaxWarning on Python 3.12.3 #46

iugov opened this issue May 17, 2024 · 2 comments
Assignees
Milestone

Comments

@iugov
Copy link

iugov commented May 17, 2024

Python 3.12 now throws a SyntaxWarning for invalid escape sequences. This will turn into an exception in future Python version, so better to fix soon.

python3.12/site-packages/vobject/base.py:736: SyntaxWarning: invalid escape sequence '\-'
  patterns['name'] = '[a-zA-Z0-9\-_]+'

python3.12/site-packages/vobject/base.py:1219: SyntaxWarning: invalid escape sequence '\,'
  s = s.replace("\\", "\\\\").replace(";", "\;").replace(",", "\,")
@da4089 da4089 self-assigned this May 22, 2024
@da4089 da4089 added this to the v0.9.8 milestone May 22, 2024
@hodeinavarro
Copy link

I came to this issue recently and did some checking on the repo, you fixed this on #21. The SyntaxWarning is fixed on current master.
You can close, thank you!

@iugov iugov closed this as completed May 24, 2024
@da4089
Copy link

da4089 commented May 27, 2024

Thanks for the report, @iugov. Glad the master fix worked for you. I'm planning to make a 0.9.8 release shortly, and this will be included in that.

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

3 participants