diff options
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-05-09 08:54:38 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-05-09 08:54:38 (GMT) |
| commit | 8ffff34ea12ca6478d73a337ce52f33660f6f174 (patch) | |
| tree | dd3db2b1f65dcbeffea959519c8f07457174f5d8 /Doc/tutorial | |
| parent | c587235f210b18d6f7f31e746fa5e5e259320c83 (diff) | |
| download | cpython-8ffff34ea12ca6478d73a337ce52f33660f6f174.zip cpython-8ffff34ea12ca6478d73a337ce52f33660f6f174.tar.gz cpython-8ffff34ea12ca6478d73a337ce52f33660f6f174.tar.bz2 | |
bpo-13525: Fix incorrect encoding name in the tutorial example. (GH-6738)
(cherry picked from commit ddb6215a55b0218b621d5cb755e9dfac8dab231a)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Doc/tutorial')
| -rw-r--r-- | Doc/tutorial/interpreter.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/tutorial/interpreter.rst b/Doc/tutorial/interpreter.rst index bf7ce77..a2766e8 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 |
