diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2018-05-09 09:35:28 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-05-09 09:35:28 (GMT) |
| commit | d7e783b17feaedbe0f5b30467cb7f43cefadf904 (patch) | |
| tree | a1c71614c599782224806a587e140c0f75c36fc3 | |
| parent | 903f189b6e528cbe9500014c6f990c6511b38918 (diff) | |
| download | cpython-d7e783b17feaedbe0f5b30467cb7f43cefadf904.zip cpython-d7e783b17feaedbe0f5b30467cb7f43cefadf904.tar.gz cpython-d7e783b17feaedbe0f5b30467cb7f43cefadf904.tar.bz2 | |
[2.7] bpo-13525: Fix incorrect encoding name in the tutorial example. (GH-6738). (GH-6744)
(cherry picked from commit ddb6215a55b0218b621d5cb755e9dfac8dab231a)
| -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 6c8609f..b727be0 100644 --- a/Doc/tutorial/interpreter.rst +++ b/Doc/tutorial/interpreter.rst @@ -137,12 +137,12 @@ 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 python - # -*- coding: cp-1252 -*- + # -*- coding: cp1252 -*- |
