Abdylreshit opened a new pull request, #2535:
URL: https://github.com/apache/plc4x/pull/2535

   ## Summary
   
   Fixes three `SyntaxWarning` messages emitted by Python 3.12+ in 
`plc4py/drivers/umas/UmasTag.py`:
   
   1. Invalid escape sequence `\[` in the regex `_ADDRESS_PATTERN` — converted 
the string literal to a raw string.
   2. Two occurrences of `len(...) is not 0` — replaced with `!= 0`. Comparing 
`int` with `is`/`is not` is unreliable (works only by CPython small-int 
caching) and the behavior is deprecated.
   
   ## Test plan
   - [x] `pytest` passes (77 passed, 36 xfailed — same as before, now with 0 
warnings)
   - [x] No behavioral changes — both fixes are semantics-preserving


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to