summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-05-09 08:10:55 (GMT)
committerGitHub <noreply@github.com>2018-05-09 08:10:55 (GMT)
commitddb6215a55b0218b621d5cb755e9dfac8dab231a (patch)
treefc32201482f529821a552d157bbe3b2a85b45797 /Doc
parentb3c369861b22268dac003eb995951726c972e5ee (diff)
downloadcpython-ddb6215a55b0218b621d5cb755e9dfac8dab231a.zip
cpython-ddb6215a55b0218b621d5cb755e9dfac8dab231a.tar.gz
cpython-ddb6215a55b0218b621d5cb755e9dfac8dab231a.tar.bz2
bpo-13525: Fix incorrect encoding name in the tutorial example. (GH-6738)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/tutorial/interpreter.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/tutorial/interpreter.rst b/Doc/tutorial/interpreter.rst
index 3d57020..6cdc6c8 100644
--- a/Doc/tutorial/interpreter.rst
+++ b/Doc/tutorial/interpreter.rst
@@ -148,14 +148,14 @@ where *encoding* is one of the valid :mod:`codecs` supported by Python.
For example, to declare that Windows-1252 encoding is to be used, the first
line of your source code file should be::
- # -*- coding: cp-1252 -*-
+ # -*- coding: cp1252 -*-
One exception to the *first line* rule is when the source code starts with a
:ref:`UNIX "shebang" line <tut-scripts>`. In this case, the encoding
declaration should be added as the second line of the file. For example::
#!/usr/bin/env python3
- # -*- coding: cp-1252 -*-
+ # -*- coding: cp1252 -*-
.. rubric:: Footnotes