Files
codeql/python/ql/src/Imports/UnusedImport.qhelp
2018-11-19 15:10:42 +00:00

24 lines
516 B
XML

<!DOCTYPE qhelp PUBLIC
"-//Semmle//qhelp//EN"
"qhelp.dtd">
<qhelp>
<overview>
<p> A module is imported (using the <code>import</code> statement) but that module
is never used. This creates a dependency that does not need to exist and makes the code
more difficult to read.
</p>
</overview>
<recommendation>
<p>Delete the import statement.</p>
</recommendation>
<references>
<li>Python: <a href="http://docs.python.org/reference/simple_stmts.html#import">import statement</a>.</li>
</references>
</qhelp>