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 903f189 commit d7e783bCopy full SHA for d7e783b
Doc/tutorial/interpreter.rst
@@ -137,12 +137,12 @@ where *encoding* is one of the valid :mod:`codecs` supported by Python.
137
For example, to declare that Windows-1252 encoding is to be used, the first
138
line of your source code file should be::
139
140
- # -*- coding: cp-1252 -*-
+ # -*- coding: cp1252 -*-
141
142
One exception to the *first line* rule is when the source code starts with a
143
:ref:`UNIX "shebang" line <tut-scripts>`. In this case, the encoding
144
declaration should be added as the second line of the file. For example::
145
146
#!/usr/bin/env python
147
148
0 commit comments