mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-21 12:14:37 +07:00
GitOrigin-RevId: 56876a5dd073a06c3fcc92f63ed1f5674830bc25
22 lines
557 B
HTML
22 lines
557 B
HTML
<html>
|
|
<body>
|
|
<p>Reports cases in Python 2 when a file contains non-ASCII characters and does not
|
|
have an encoding declaration at the top.</p>
|
|
<p><b>Example:</b></p>
|
|
<pre><code>
|
|
class A(object):
|
|
# №5
|
|
def __init__(self):
|
|
pass
|
|
</code></pre>
|
|
<p>In this example, the IDE reports a non-ASCII symbol in a comment and a lack of encoding
|
|
declaration. Apply the proposed quick-fix to add a missing encoding declaration:</p>
|
|
<pre><code>
|
|
# coding=utf-8
|
|
class A(object)
|
|
# №5
|
|
def __init__(self):
|
|
pass
|
|
</code></pre>
|
|
</body>
|
|
</html> |