mirror of
https://github.com/django/django.git
synced 2025-10-25 06:36:07 +00:00
Fixed E305 flake8 warnings.
This commit is contained in:
committed by
Tim Graham
parent
6072de727f
commit
967be82443
@@ -145,6 +145,7 @@ def force_bytes(s, encoding='utf-8', strings_only=False, errors='strict'):
|
||||
else:
|
||||
return s.encode(encoding, errors)
|
||||
|
||||
|
||||
if six.PY3:
|
||||
smart_str = smart_text
|
||||
force_str = force_text
|
||||
@@ -278,4 +279,5 @@ def get_system_encoding():
|
||||
encoding = 'ascii'
|
||||
return encoding
|
||||
|
||||
|
||||
DEFAULT_LOCALE_ENCODING = get_system_encoding()
|
||||
|
||||
Reference in New Issue
Block a user