Skip to content

hidtools: replace deprecated parse module with re

It looks like the "parse" module was removed in Python 3.10. The "ast" module that is supposed to replace it, is not that useful for our use case.

Instead we use the regular expression module to do the parsing. Using the named groups would have been nicer, but since those are only available since Python 3.11, we will not make use of them for compatibility reasons.

Signed-off-by: Silvan Jegen s.jegen@gmail.com

Merge request reports