测试gitnore
This commit is contained in:
@@ -23,7 +23,6 @@ class SafeString(str, SafeData):
|
||||
A str subclass that has been specifically marked as "safe" for HTML output
|
||||
purposes.
|
||||
"""
|
||||
|
||||
def __add__(self, rhs):
|
||||
"""
|
||||
Concatenating a safe string with another safe bytestring or
|
||||
@@ -45,7 +44,6 @@ def _safety_decorator(safety_marker, func):
|
||||
@wraps(func)
|
||||
def wrapped(*args, **kwargs):
|
||||
return safety_marker(func(*args, **kwargs))
|
||||
|
||||
return wrapped
|
||||
|
||||
|
||||
@@ -58,7 +56,7 @@ def mark_safe(s):
|
||||
|
||||
Can be called multiple times on a single string.
|
||||
"""
|
||||
if hasattr(s, "__html__"):
|
||||
if hasattr(s, '__html__'):
|
||||
return s
|
||||
if callable(s):
|
||||
return _safety_decorator(mark_safe, s)
|
||||
|
||||
Reference in New Issue
Block a user