We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6079b60 commit fa40fc0Copy full SHA for fa40fc0
Doc/tutorial/interpreter.rst
@@ -148,14 +148,14 @@ where *encoding* is one of the valid :mod:`codecs` supported by Python.
148
For example, to declare that Windows-1252 encoding is to be used, the first
149
line of your source code file should be::
150
151
- # -*- coding: cp-1252 -*-
+ # -*- coding: cp1252 -*-
152
153
One exception to the *first line* rule is when the source code starts with a
154
:ref:`UNIX "shebang" line <tut-scripts>`. In this case, the encoding
155
declaration should be added as the second line of the file. For example::
156
157
#!/usr/bin/env python3
158
159
160
.. rubric:: Footnotes
161
0 commit comments