Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wrapper: use raw string literals for regular expressions (#946)
This fixes a SyntaxWarning with Python 3.12: /usr/lib/nzbhydra2/nzbhydra2wrapperPy3.py:584: SyntaxWarning: invalid escape sequence '\d' match = re.match('(java|openjdk) (version )?"?(?P<major>\d+)((\.(?P<minor>\d+)\.(?P<patch>\d)+)?[\-_\w]*)?"?.*', versionLine) Although Python 2 doesn't print a warning, using a raw string literal is the correct thing to do, so I applied this change to the Python 2 wrapper as well.
- Loading branch information