Skip to content

Commit

Permalink
Merge pull request #133 from mozilla/fix-132-force-text-deprecation-w…
Browse files Browse the repository at this point in the history
…arning

utils: use force_str instead of force_text
  • Loading branch information
g-k committed Dec 11, 2019
2 parents 5102069 + 7c7ed59 commit 6319d9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions csp/utils.py
Expand Up @@ -6,7 +6,7 @@
from itertools import chain

from django.conf import settings
from django.utils.encoding import force_text
from django.utils.encoding import force_str


CHILD_SRC_DEPRECATION_WARNING = \
Expand Down Expand Up @@ -100,7 +100,7 @@ def build_policy(config=None, update=None, replace=None, nonce=None):
warnings.warn(CHILD_SRC_DEPRECATION_WARNING, DeprecationWarning)

if report_uri:
report_uri = map(force_text, report_uri)
report_uri = map(force_str, report_uri)
policy_parts['report-uri'] = ' '.join(report_uri)

if nonce:
Expand Down

0 comments on commit 6319d9a

Please sign in to comment.