summaryrefslogtreecommitdiff
path: root/django/utils/safestring.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/utils/safestring.py')
-rw-r--r--django/utils/safestring.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/utils/safestring.py b/django/utils/safestring.py
index 2dfbd01cfe..9b83a947d5 100644
--- a/django/utils/safestring.py
+++ b/django/utils/safestring.py
@@ -28,7 +28,7 @@ class SafeBytes(bytes, SafeData):
Concatenating a safe byte string with another safe byte string or safe
unicode string is safe. Otherwise, the result is no longer safe.
"""
- t = super(SafeBytes, self).__add__(rhs)
+ t = super().__add__(rhs)
if isinstance(rhs, SafeText):
return SafeText(t)
elif isinstance(rhs, SafeBytes):
@@ -61,7 +61,7 @@ class SafeText(str, SafeData):
Concatenating a safe unicode string with another safe byte string or
safe unicode string is safe. Otherwise, the result is no longer safe.
"""
- t = super(SafeText, self).__add__(rhs)
+ t = super().__add__(rhs)
if isinstance(rhs, SafeData):
return SafeText(t)
return t