summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorClaudiu Popa <cpopa@cloudbasesolutions.com>2015-01-03 10:04:58 +0200
committerClaudiu Popa <cpopa@cloudbasesolutions.com>2015-01-03 10:04:58 +0200
commit1e575a772d1e52af0b04828c7401569755663578 (patch)
treef13a405948dc24463e921eca7acc7eafa017ed94 /examples
parent7a47475e30ee7389b4df836667426924860f9f55 (diff)
downloadpylint-1e575a772d1e52af0b04828c7401569755663578.tar.gz
Update the examples to the new message format.
Diffstat (limited to 'examples')
-rw-r--r--examples/custom_raw.py4
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):