Skip to content

Commit

Permalink
The default encoding of Python sources is UTF-8
Browse files Browse the repository at this point in the history
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 -*-`.
  • Loading branch information
DimitriPapadopoulos committed Nov 20, 2022
1 parent 59ee498 commit 069dca9
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 10 deletions.
1 change: 0 additions & 1 deletion docs/conf.py
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

extensions = [
'sphinx.ext.autodoc',
Expand Down
1 change: 0 additions & 1 deletion setuptools/command/upload_docs.py
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
"""upload_docs
Implements a Distutils 'upload_docs' subcommand (upload documentation to
Expand Down
1 change: 0 additions & 1 deletion setuptools/dist.py
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
__all__ = ['Distribution']

import io
Expand Down
4 changes: 1 addition & 3 deletions setuptools/tests/script-with-bom.py
@@ -1,3 +1 @@
# -*- coding: utf-8 -*-

result = 'passed'
result = 'passed'
1 change: 0 additions & 1 deletion setuptools/tests/test_manifest.py
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
"""sdist tests"""

import contextlib
Expand Down
1 change: 0 additions & 1 deletion setuptools/tests/test_msvc14.py
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
"""
Tests for msvc support module (msvc14 unit tests).
"""
Expand Down
2 changes: 0 additions & 2 deletions setuptools/tests/test_wheel.py
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-

"""wheel tests
"""

Expand Down

0 comments on commit 069dca9

Please sign in to comment.