mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
19 lines
441 B
HTML
19 lines
441 B
HTML
<html>
|
|
<body>
|
|
<p>Reports errors in string formatting operations.</p>
|
|
<p><b>Example 1:</b></p>
|
|
<pre><code>
|
|
"Hello {1}".format("people")
|
|
</code></pre>
|
|
<p><b>Example 2:</b></p>
|
|
<pre><code>
|
|
def bar():
|
|
return 1
|
|
|
|
|
|
"%s %s" % bar()
|
|
</code></pre>
|
|
<p>As a fix, you need to rewrite string formatting fragments to
|
|
adhere to the <a href="https://docs.python.org/3/library/string.html#format-string-syntax">formatting syntax</a>.</p>
|
|
</body>
|
|
</html> |