Fix the patch to use Python 2-compatible unicode strings.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python?expand=0&rev=327
This commit is contained in:
Matej Cepl 2022-06-09 21:33:02 +00:00 committed by Git OBS Bridge
parent da24c1af97
commit d38335e738

View File

@ -36,7 +36,7 @@
__all__ = ["getcaps","findmatch"] __all__ = ["getcaps","findmatch"]
+_find_unsafe = re.compile(r'[^\xa1-\U0010FFFF\w@+=:,./-]').search +_find_unsafe = re.compile(ur'[^\xa1-\U0010FFFF\w@+=:,./-]').search
+ +
+class UnsafeMailcapInput(Warning): +class UnsafeMailcapInput(Warning):
+ """Warning raised when refusing unsafe input""" + """Warning raised when refusing unsafe input"""