mirror of
https://github.com/django/django.git
synced 2025-10-24 22:26:08 +00:00
[py3] Fixed str_prefix test utility
This commit is contained in:
@@ -221,4 +221,4 @@ class override_settings(object):
|
|||||||
setting=key, value=new_value)
|
setting=key, value=new_value)
|
||||||
|
|
||||||
def str_prefix(s):
|
def str_prefix(s):
|
||||||
return s % {'_': 'u'}
|
return s % {'_': '' if six.PY3 else 'u'}
|
||||||
|
|||||||
Reference in New Issue
Block a user