Skip to content

Adapt to fnmatch.translate() using \z instead of \Z in Python 3.14#1905

Open
elfmimi wants to merge 1 commit intopyocd:mainfrom
elfmimi:fix-device-name-match
Open

Adapt to fnmatch.translate() using \z instead of \Z in Python 3.14#1905
elfmimi wants to merge 1 commit intopyocd:mainfrom
elfmimi:fix-device-name-match

Conversation

@elfmimi
Copy link
Copy Markdown

@elfmimi elfmimi commented Feb 11, 2026

fnmatch.translate() returns slightly different result in Python 3.14 .

https://docs.python.org/3.13/library/fnmatch.html

'(?s:.*\.txt)\Z'

https://docs.python.org/3.14/library/fnmatch.html

'(?s:.*\.txt)\z'

this causes pyocd pack find X to only match device names ending with X .

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

Successfully merging this pull request may close these issues.

1 participant