diff options
author | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2015-01-03 10:04:58 +0200 |
---|---|---|
committer | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2015-01-03 10:04:58 +0200 |
commit | 1e575a772d1e52af0b04828c7401569755663578 (patch) | |
tree | f13a405948dc24463e921eca7acc7eafa017ed94 | |
parent | 7a47475e30ee7389b4df836667426924860f9f55 (diff) | |
download | pylint-1e575a772d1e52af0b04828c7401569755663578.tar.gz |
Update the examples to the new message format.
-rw-r--r-- | examples/custom_raw.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/custom_raw.py b/examples/custom_raw.py index da576a2..30e90bf 100644 --- a/examples/custom_raw.py +++ b/examples/custom_raw.py @@ -10,6 +10,7 @@ class MyRawChecker(BaseChecker): name = 'custom_raw' msgs = {'W9901': ('use \\ for line continuation', + 'backslash-line-continuation', ('Used when a \\ is used for a line continuation instead' ' of using triple quoted string or parenthesis.')), } @@ -23,7 +24,8 @@ class MyRawChecker(BaseChecker): with module.stream() as stream: for (lineno, line) in enumerate(stream): if line.rstrip().endswith('\\'): - self.add_message('W9901', line=lineno) + self.add_message('backslash-line-continuation', + line=lineno) def register(linter): |