]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[2.7] bpo-13525: Fix incorrect encoding name in the tutorial example. (GH-6738)....
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 9 May 2018 09:35:28 +0000 (12:35 +0300)
committerGitHub <noreply@github.com>
Wed, 9 May 2018 09:35:28 +0000 (12:35 +0300)
(cherry picked from commit ddb6215a55b0218b621d5cb755e9dfac8dab231a)

Doc/tutorial/interpreter.rst

index 6c8609fabaeb52362ff439632c07ff8f170eecca..b727be00ab8aa3c094c1dd1217348bd45944699d 100644 (file)
@@ -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 -*-