diff options
author | sdet_liang <liangway@users.noreply.github.com> | 2016-10-25 18:15:13 +0800 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2016-10-25 05:15:13 -0500 |
commit | 601b10abfa593ea1190345ed737f61e0e58270c4 (patch) | |
tree | 92483e3cba0b0d3e54ad770b55d88e40bb7ba54c | |
parent | bbffb9b1d160f4d7aacdfe5d3d729abd06766371 (diff) | |
download | pylint-git-601b10abfa593ea1190345ed737f61e0e58270c4.tar.gz |
Fix err "global name 'module' is not defined" (#1146)
Fix following error when using this plugin
```
with module.stream() as stream:
NameError: global name 'module' is not defined
```
-rw-r--r-- | examples/custom_raw.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/custom_raw.py b/examples/custom_raw.py index 30e90bfac..a86666724 100644 --- a/examples/custom_raw.py +++ b/examples/custom_raw.py @@ -21,7 +21,7 @@ class MyRawChecker(BaseChecker): the module's content is accessible via node.stream() function """ - with module.stream() as stream: + with node.stream() as stream: for (lineno, line) in enumerate(stream): if line.rstrip().endswith('\\'): self.add_message('backslash-line-continuation', |