diff options
author | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2011-10-26 09:35:41 +0200 |
---|---|---|
committer | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2011-10-26 09:35:41 +0200 |
commit | 44ea42d4536f7d264cd301ed0000617e6154842b (patch) | |
tree | f4dc71abaefe251ff632c085415b83a8514a0882 /examples/custom_raw.py | |
parent | e9f768bcc9a9a42012276e50e0126f30611f3dce (diff) | |
download | pylint-44ea42d4536f7d264cd301ed0000617e6154842b.tar.gz |
add note about soon useless stream.seek()
Diffstat (limited to 'examples/custom_raw.py')
-rw-r--r-- | examples/custom_raw.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/custom_raw.py b/examples/custom_raw.py index 811c785..00fbe89 100644 --- a/examples/custom_raw.py +++ b/examples/custom_raw.py @@ -20,9 +20,7 @@ class MyRawChecker(BaseChecker): the module's content is accessible via node.file_stream object """ - stream = node.file_stream - stream.seek(0) - for (lineno, line) in enumerate(stream): + for (lineno, line) in enumerate(node.file_stream): if line.rstrip().endswith('\\'): self.add_message('W9901', line=lineno) |