summaryrefslogtreecommitdiffstats
path: root/Lib/encodings
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-09-02 10:12:23 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-09-02 10:12:23 (GMT)
commit1a05d6c04d2a499a7485b15668f2eb37f9f60e3a (patch)
treece59d6ed99f5db6b3fc544bda74f2ba14b211d0f /Lib/encodings
parent65a5a47d799184bf69c8f0eb6004c701ff8f7d90 (diff)
downloadcpython-1a05d6c04d2a499a7485b15668f2eb37f9f60e3a.zip
cpython-1a05d6c04d2a499a7485b15668f2eb37f9f60e3a.tar.gz
cpython-1a05d6c04d2a499a7485b15668f2eb37f9f60e3a.tar.bz2
PEP 7 style for if/else in C
Add also a newline for readability in normalize_encoding().
Diffstat (limited to 'Lib/encodings')
-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 8dd7130..320011b 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: