1
0
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:
Ramin Farajpour Cami
2016-11-12 20:41:23 +03:30
committed by Tim Graham
parent 6072de727f
commit 967be82443
114 changed files with 360 additions and 0 deletions

View File

@@ -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()