ironic/tools/flakes.py
Devananda van der Veen 05e9ce4c48 Import add'l files from Nova
Import lots of files from Nova at rev
f0da3464ab17552f24977d22365fa9573702f5a8
2013-05-07 16:47:49 -07:00

25 lines
482 B
Python

"""
wrapper for pyflakes to ignore gettext based warning:
"undefined name '_'"
Synced in from openstack-common
"""
__all__ = ['main']
import __builtin__ as builtins
import sys
import pyflakes.api
from pyflakes import checker
def main():
checker.Checker.builtIns = (set(dir(builtins)) |
set(['_']) |
set(checker._MAGIC_GLOBALS))
sys.exit(pyflakes.api.main())
if __name__ == "__main__":
main()