mirror of
				https://github.com/django/django.git
				synced 2025-10-30 17:16:10 +00:00 
			
		
		
		
	Remove double isinstance check in force_unicode
This commit is contained in:
		| @@ -94,7 +94,7 @@ def force_unicode(s, encoding='utf-8', strings_only=False, errors='strict'): | |||||||
|                     # output should be. |                     # output should be. | ||||||
|                     s = ' '.join([force_unicode(arg, encoding, strings_only, |                     s = ' '.join([force_unicode(arg, encoding, strings_only, | ||||||
|                             errors) for arg in s]) |                             errors) for arg in s]) | ||||||
|         elif not isinstance(s, six.text_type): |         else: | ||||||
|             # Note: We use .decode() here, instead of six.text_type(s, encoding, |             # Note: We use .decode() here, instead of six.text_type(s, encoding, | ||||||
|             # errors), so that if s is a SafeString, it ends up being a |             # errors), so that if s is a SafeString, it ends up being a | ||||||
|             # SafeUnicode at the end. |             # SafeUnicode at the end. | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user