summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2019-10-21 16:49:13 -0700
committerJon Dufresne <jon.dufresne@gmail.com>2019-10-21 16:55:38 -0700
commitd89682fcba90595d5d6aaf071d6efcc815bceba8 (patch)
tree4844aba88f0587cdb3cb4714f24d3ced90dd3eb7
parent1362c8c37355f74b5aa9a8afb749aa9464bb58fb (diff)
downloadpython-setuptools-git-d89682fcba90595d5d6aaf071d6efcc815bceba8.tar.gz
Change coding cookie to use utf-8 (lowercase)
While perfectly valid, the encoding 'UTF-8' (uppercase) is not recognized by the Emacs MULE system. As such, it displays the following warning when opening a file with it used as an encoding cookie: Warning (mule): Invalid coding system ‘UTF-8’ is specified for the current buffer/file by the :coding tag. It is highly recommended to fix it before writing to a file. Some discussion of this can be found at: https://stackoverflow.com/questions/14031724/how-to-make-emacs-accept-utf-8-uppercase-encoding While the post does offer a workaround for Emacs users, rather than ask all to implement it, use the more typical utf-8 (lowercase).
-rw-r--r--setuptools/tests/test_config.py2
-rw-r--r--setuptools/tests/test_test.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/tests/test_config.py b/setuptools/tests/test_config.py
index 1b94a586..69d8d00d 100644
--- a/setuptools/tests/test_config.py
+++ b/setuptools/tests/test_config.py
@@ -1,4 +1,4 @@
-# -*- coding: UTF-8 -*-
+# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import contextlib
diff --git a/setuptools/tests/test_test.py b/setuptools/tests/test_test.py
index faaa6ba9..3415913b 100644
--- a/setuptools/tests/test_test.py
+++ b/setuptools/tests/test_test.py
@@ -1,4 +1,4 @@
-# -*- coding: UTF-8 -*-
+# -*- coding: utf-8 -*-
from __future__ import unicode_literals