diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2019-03-09 11:23:15 +0100 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2019-03-20 09:07:35 +0100 |
commit | 2d525d68249cf00c4dbb521e331e99b481a113c3 (patch) | |
tree | 29ab4faad229c838ab74b97349fd9922cd14613e /examples/custom_raw.py | |
parent | 5ab140ac3b3dda6f32e0f73aeec09abf015ea30f (diff) | |
download | pylint-git-2d525d68249cf00c4dbb521e331e99b481a113c3.tar.gz |
Style - Re-Apply black following the isort cleanup
Change with isort triggered change with black.
Diffstat (limited to 'examples/custom_raw.py')
-rw-r--r-- | examples/custom_raw.py | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/examples/custom_raw.py b/examples/custom_raw.py index fb28d4931..63e4aeb8e 100644 --- a/examples/custom_raw.py +++ b/examples/custom_raw.py @@ -9,12 +9,17 @@ class MyRawChecker(BaseChecker): __implements__ = IRawChecker - 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.')), - } + 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." + ), + ) + } options = () def process_module(self, node): @@ -24,9 +29,8 @@ class MyRawChecker(BaseChecker): """ with node.stream() as stream: for (lineno, line) in enumerate(stream): - if line.rstrip().endswith('\\'): - self.add_message('backslash-line-continuation', - line=lineno) + if line.rstrip().endswith("\\"): + self.add_message("backslash-line-continuation", line=lineno) def register(linter): |