Open wbolster opened 3 years ago
@wbolster, I'm unable to reproduce this using Python 3.9.18 and current GitHub code (which is unchanged from the lines quoted above).
Are you able to confirm it is happening for you still?
are you sure warnings are actually shown? i can reproduce this with py39 – py312:
$ python3.9 -Wa -c "'[a-zA-Z0-9\-_]+'"
<string>:1: DeprecationWarning: invalid escape sequence \-
$ python3.10 -Wa -c "'[a-zA-Z0-9\-_]+'"
<string>:1: DeprecationWarning: invalid escape sequence '\-'
$ python3.11 -Wa -c "'[a-zA-Z0-9\-_]+'"
<string>:1: DeprecationWarning: invalid escape sequence '\-'
$ python3.12 -Wa -c "'[a-zA-Z0-9\-_]+'"
<string>:1: SyntaxWarning: invalid escape sequence '\-'
note how py312 turned it from DeprecationWarning
into SyntaxWarning
I see that too (using -Wa), but actually importing the vobject
module doesn't show those warnings. Which is a little odd, because vobject.base.patterns['name']
is initialized, so it has been parsed.
Fixed in https://github.com/py-vobject/vobject/pull/21, thanks for the report!
thanks!
importing the
vobject
module using python 3.9 results in these warnings:DeprecationWarning: invalid escape sequence
details: