summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com>2022-11-20 19:40:56 +0100
committerDimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com>2022-11-20 19:47:01 +0100
commit069dca9c534bf380659da7fc7a1a83476419a2da (patch)
treea031414044ff0d0fd1e5c8a7f0198bdc446b2e2c
parent59ee4980a0f49ea610e26a1aca104334ae03d140 (diff)
downloadpython-setuptools-git-069dca9c534bf380659da7fc7a1a83476419a2da.tar.gz
The default encoding of Python sources is UTF-8
Python 3 assumes the encoding is UTF-8 by default, and so do or should do tools such as text editors when opening Python files. No need to explicitly set `*- coding: utf-8 -*-`.
-rw-r--r--docs/conf.py1
-rw-r--r--setuptools/command/upload_docs.py1
-rw-r--r--setuptools/dist.py1
-rw-r--r--setuptools/tests/script-with-bom.py4
-rw-r--r--setuptools/tests/test_manifest.py1
-rw-r--r--setuptools/tests/test_msvc14.py1
-rw-r--r--setuptools/tests/test_wheel.py2
7 files changed, 1 insertions, 10 deletions
diff --git a/docs/conf.py b/docs/conf.py
index a9c9800a..64c2625f 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
-# -*- coding: utf-8 -*-
extensions = [
'sphinx.ext.autodoc',
diff --git a/setuptools/command/upload_docs.py b/setuptools/command/upload_docs.py
index 3263f07f..63eb28c7 100644
--- a/setuptools/command/upload_docs.py
+++ b/setuptools/command/upload_docs.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""upload_docs
Implements a Distutils 'upload_docs' subcommand (upload documentation to
diff --git a/setuptools/dist.py b/setuptools/dist.py
index 82423548..624a67f2 100644
--- a/setuptools/dist.py
+++ b/setuptools/dist.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
__all__ = ['Distribution']
import io
diff --git a/setuptools/tests/script-with-bom.py b/setuptools/tests/script-with-bom.py
index 22dee0d2..93d28f16 100644
--- a/setuptools/tests/script-with-bom.py
+++ b/setuptools/tests/script-with-bom.py
@@ -1,3 +1 @@
-# -*- coding: utf-8 -*-
-
-result = 'passed'
+result = 'passed'
diff --git a/setuptools/tests/test_manifest.py b/setuptools/tests/test_manifest.py
index ecc83c2f..4a8789ae 100644
--- a/setuptools/tests/test_manifest.py
+++ b/setuptools/tests/test_manifest.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""sdist tests"""
import contextlib
diff --git a/setuptools/tests/test_msvc14.py b/setuptools/tests/test_msvc14.py
index 1aca12dd..271d6be5 100644
--- a/setuptools/tests/test_msvc14.py
+++ b/setuptools/tests/test_msvc14.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""
Tests for msvc support module (msvc14 unit tests).
"""
diff --git a/setuptools/tests/test_wheel.py b/setuptools/tests/test_wheel.py
index 89d65d0b..b2bbdfae 100644
--- a/setuptools/tests/test_wheel.py
+++ b/setuptools/tests/test_wheel.py
@@ -1,5 +1,3 @@
-# -*- coding: utf-8 -*-
-
"""wheel tests
"""