diff options
author | Tim Graham <timograham@gmail.com> | 2017-02-07 12:05:47 -0500 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2017-02-09 09:03:47 -0500 |
commit | 500532c95db40b0b24654be7bb0d76b66b022bd5 (patch) | |
tree | 761766d7138652703e566ac9c96960a265f036ff /tests/logging_tests | |
parent | 21f13ff5b3d5a42d62f38398c010efcdce30dad7 (diff) | |
download | django-500532c95db40b0b24654be7bb0d76b66b022bd5.tar.gz |
Refs #23919 -- Removed default 'utf-8' argument for str.encode()/decode().
Diffstat (limited to 'tests/logging_tests')
-rw-r--r-- | tests/logging_tests/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/logging_tests/tests.py b/tests/logging_tests/tests.py index f084feb514..d2eecb9450 100644 --- a/tests/logging_tests/tests.py +++ b/tests/logging_tests/tests.py @@ -447,7 +447,7 @@ args=(sys.stdout,) format=%(message)s """ self.temp_file = NamedTemporaryFile() - self.temp_file.write(logging_conf.encode('utf-8')) + self.temp_file.write(logging_conf.encode()) self.temp_file.flush() sdict = {'LOGGING_CONFIG': '"logging.config.fileConfig"', 'LOGGING': 'r"%s"' % self.temp_file.name} |