Files
openide/python/python-psi-impl/resources/inspectionDescriptions/PyNonAsciiCharInspection.html
T
Louis Vignierandintellij-monorepo-bot 1869ec9da6 [codeInspection] Fix python inspection descriptions
GitOrigin-RevId: 56876a5dd073a06c3fcc92f63ed1f5674830bc25
2023-04-28 13:13:25 +00:00

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):
# &#8470;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)
# &#8470;5
def __init__(self):
pass
</code></pre>
</body>
</html>