Skip to content

Commit e567f43

Browse files
committed
Merge pull request django#225 from dekkers/remove-double-isinstance-check
Remove double isinstance check in force_unicode
2 parents c0748a6 + 226a3e7 commit e567f43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django/utils/encoding.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def force_unicode(s, encoding='utf-8', strings_only=False, errors='strict'):
9494
# output should be.
9595
s = ' '.join([force_unicode(arg, encoding, strings_only,
9696
errors) for arg in s])
97-
elif not isinstance(s, six.text_type):
97+
else:
9898
# Note: We use .decode() here, instead of six.text_type(s, encoding,
9999
# errors), so that if s is a SafeString, it ends up being a
100100
# SafeUnicode at the end.

0 commit comments

Comments
 (0)