diff options
| author | Jenkins <jenkins@review.openstack.org> | 2016-11-30 16:23:51 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2016-11-30 16:23:51 +0000 |
| commit | bc6a3663cbc578370255455d280212883b4824b3 (patch) | |
| tree | 727f5740ab25fa1842f07dbe99e41e1500f380fa /kolla/hacking | |
| parent | 5a9097a0dc9f0151068c5575748748328e7d9a34 (diff) | |
| parent | c756896e904c0ca48236bd4a9c08dff7fa1b4e86 (diff) | |
| download | kolla-bc6a3663cbc578370255455d280212883b4824b3.tar.gz kolla-bc6a3663cbc578370255455d280212883b4824b3.zip | |
Merge "Add HACKING.rst and hacking test case."
Diffstat (limited to 'kolla/hacking')
| -rw-r--r-- | kolla/hacking/checks.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kolla/hacking/checks.py b/kolla/hacking/checks.py index 9eba06c01..593b8bf83 100644 --- a/kolla/hacking/checks.py +++ b/kolla/hacking/checks.py @@ -21,16 +21,16 @@ def no_log_warn(logical_line): Deprecated LOG.warn(), instead use LOG.warning https://bugs.launchpad.net/senlin/+bug/1508442 - N352 + K302 """ - msg = ("N352: LOG.warn is deprecated, please use LOG.warning!") + msg = ("K302: LOG.warn is deprecated, please use LOG.warning!") if "LOG.warn(" in logical_line: yield (0, msg) def no_mutable_default_args(logical_line): - msg = "N301: Method's default argument shouldn't be mutable!" + msg = "K301: Method's default argument shouldn't be mutable!" if mutable_default_args.match(logical_line): yield (0, msg) |
