mirror of
https://github.com/github/codeql.git
synced 2026-01-05 02:30:19 +01:00
25 lines
506 B
XML
25 lines
506 B
XML
<!DOCTYPE qhelp PUBLIC
|
|
"-//Semmle//qhelp//EN"
|
|
"qhelp.dtd">
|
|
<qhelp>
|
|
<overview>
|
|
<p>Importing the same module more than once has no effect as each module is only loaded once. It also
|
|
confuses readers of the code.</p>
|
|
|
|
</overview>
|
|
<recommendation>
|
|
<p>Remove the second import.</p>
|
|
|
|
</recommendation>
|
|
<example>
|
|
<sample src="MultipleImports.py" />
|
|
|
|
</example>
|
|
<references>
|
|
|
|
<li>Python: <a href="http://docs.python.org/reference/simple_stmts.html#import">import statement</a>.</li>
|
|
|
|
|
|
</references>
|
|
</qhelp>
|