7390880e68
Up to date as of 575e74d352d685773513218a286979bb58920246. Change-Id: I302bd832fdd4ee6a325b600aceba525b109bb4e1
25 lines
482 B
Python
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()
|