]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix issue in hacking with underscore imports
authorMarc Koderer <marc@koderer.com>
Thu, 4 Feb 2016 12:43:33 +0000 (13:43 +0100)
committerMarc Koderer <marc@koderer.com>
Thu, 4 Feb 2016 14:44:03 +0000 (15:44 +0100)
commit9c6ef735d371d630371df1b7b9f07e82d40c4b37
tree69bae076e8c7cad0dddc467b5c6453735693e6ed
parent9299e7aebea42095fe1fa09b89d7297b5a53826e
Fix issue in hacking with underscore imports

Hacking rule for underscore imports _() are not working correctly.
It also matches _.* imports like "import _LE"

See review: https://review.openstack.org/#/c/270754/

Closes-bug: 1541780
Change-Id: Ibdef35e1896882a8dfe3165dba989255639e61ba
cinder/hacking/checks.py
cinder/tests/unit/test_hacking.py