aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-09-02 12:12:23 +0200
committerVictor Stinner <victor.stinner@gmail.com>2016-09-02 12:12:23 +0200
commit1a05d6c04d2a499a7485b15668f2eb37f9f60e3a (patch)
treece59d6ed99f5db6b3fc544bda74f2ba14b211d0f /Lib/encodings/__init__.py
parentissue23591: add docs; code cleanup; more tests (diff)
downloadcpython-1a05d6c04d2a499a7485b15668f2eb37f9f60e3a.tar.gz
cpython-1a05d6c04d2a499a7485b15668f2eb37f9f60e3a.tar.bz2
cpython-1a05d6c04d2a499a7485b15668f2eb37f9f60e3a.zip
PEP 7 style for if/else in C
Add also a newline for readability in normalize_encoding().
Diffstat (limited to 'Lib/encodings/__init__.py')
-rw-r--r--Lib/encodings/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/encodings/__init__.py b/Lib/encodings/__init__.py
index 8dd713056ef..320011bd0eb 100644
--- a/Lib/encodings/__init__.py
+++ b/Lib/encodings/__init__.py
@@ -54,6 +54,7 @@ def normalize_encoding(encoding):
"""
if isinstance(encoding, bytes):
encoding = str(encoding, "ascii")
+
chars = []
punct = False
for c in encoding: