diff options
| author | Joe Gordon <jogo@cloudscaling.com> | 2013-01-25 20:34:03 +0000 |
|---|---|---|
| committer | Joe Gordon <jogo@cloudscaling.com> | 2013-01-28 21:37:32 +0000 |
| commit | 8af6c6b885ccefec2de2e2a52a1f8456a971d570 (patch) | |
| tree | 8df51bd1cd40715c963c810cf5a39e2b1aca7e3b /tools | |
| parent | ce09c50c9253131396f713edbf11ca427341be0e (diff) | |
Make sure there are no unused import
Remove all currently unused imports
Prevent future unused imports
Change-Id: I6ac26d5c71b79952a7732db300355a00310c712e
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/flakes.py | 4 | ||||
| -rwxr-xr-x | tools/unused_imports.sh | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/tools/flakes.py b/tools/flakes.py index 4b93abc21..f805fd156 100644 --- a/tools/flakes.py +++ b/tools/flakes.py @@ -8,7 +8,7 @@ import __builtin__ import os import sys -from pyflakes.scripts.pyflakes import main +from pyflakes.scripts import pyflakes if __name__ == "__main__": names = os.environ.get('PYFLAKES_BUILTINS', '_') @@ -19,4 +19,4 @@ if __name__ == "__main__": del names, os, __builtin__ - sys.exit(main()) + sys.exit(pyflakes.main()) diff --git a/tools/unused_imports.sh b/tools/unused_imports.sh new file mode 100755 index 000000000..0e0294517 --- /dev/null +++ b/tools/unused_imports.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +#snakefood sfood-checker detects even more unused imports +! pyflakes nova/ | grep "imported but unused" |
