summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJoe Gordon <jogo@cloudscaling.com>2013-01-28 11:16:07 -0800
committerJoe Gordon <jogo@cloudscaling.com>2013-01-28 11:16:07 -0800
commit7d8a3ba942742b9dfbdbbe752a7f02ffa90ea6af (patch)
tree439815ad5088e2d911e30d1d11709baa46ca16bc /tools
parentb5288ab022d3733abae25971ca8afb56f1a7011b (diff)
downloadoslo-7d8a3ba942742b9dfbdbbe752a7f02ffa90ea6af.tar.gz
oslo-7d8a3ba942742b9dfbdbbe752a7f02ffa90ea6af.tar.xz
oslo-7d8a3ba942742b9dfbdbbe752a7f02ffa90ea6af.zip
Only import modules in tools/flakes
Change-Id: I049f4e4d3927d0bf792697d30250083c87ca0b73
Diffstat (limited to 'tools')
-rw-r--r--tools/flakes.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/flakes.py b/tools/flakes.py
index 5e089ba..7f96116 100644
--- a/tools/flakes.py
+++ b/tools/flakes.py
@@ -7,9 +7,9 @@
import sys
import pyflakes.checker
-from pyflakes.scripts.pyflakes import main
+from pyflakes.scripts import pyflakes
if __name__ == "__main__":
orig_builtins = set(pyflakes.checker._MAGIC_GLOBALS)
pyflakes.checker._MAGIC_GLOBALS = orig_builtins | set(['_'])
- sys.exit(main())
+ sys.exit(pyflakes.main())