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:
parent
da24c1af97
commit
d38335e738
@ -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"""
|
||||||
|
Loading…
Reference in New Issue
Block a user