Follow-up to improve pep8 checking with hacking

This patch will make consistency with Nova, Cinder and
other projects in openstack. It's going to rename D703
to N323.

Change-Id: I3fe63590c72b65b97f120c96f7b566a771c7087c
This commit is contained in:
Nguyen Van Trung 2018-07-26 10:29:41 +07:00
parent 40af9848ac
commit 423225046c

View File

@ -14,7 +14,7 @@
import re
# D703: Found use of _() without explicit import of _!
# N323: Found use of _() without explicit import of _!
UNDERSCORE_IMPORT_FILES = []
@ -48,7 +48,7 @@ def check_explicit_underscore_import(logical_line, filename):
UNDERSCORE_IMPORT_FILES.append(filename)
elif (translated_log.match(logical_line) or
string_translation.match(logical_line)):
yield(0, "D703: Found use of _() without explicit import of _!")
yield(0, "N323: Found use of _() without explicit import of _!")
def factory(register):