Mark unused import false positives
authorJeremy Stanley <fungi@yuggoth.org>
Tue, 29 Jul 2014 19:37:50 +0000 (19:37 +0000)
committerJeremy Stanley <fungi@yuggoth.org>
Tue, 29 Jul 2014 19:37:50 +0000 (19:37 +0000)
Since the reload framework in the package's init imports modules
which look as if they don't get used, add noqa comments inline to
indicate they should be ignored by static analysis tools.

lib/mudpy/__init__.py

index 04001a0..d04f1b4 100644 (file)
@@ -5,9 +5,9 @@
 # to use, copy, modify, and distribute this software is granted under
 # terms provided in the LICENSE file distributed with this software.
 
 # to use, copy, modify, and distribute this software is granted under
 # terms provided in the LICENSE file distributed with this software.
 
-import imp
+import imp  # noqa (referenced via exec of string literal below)
 
 
-import mudpy
+import mudpy  # noqa (referenced via exec of string literal below)
 
 
 def load():
 
 
 def load():