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 | d3f545682f301e4b388bb9677ecab1ce51b2668c (patch) | |
tree | b9b43f2517699e59f4df5b1df8fe44e824cc417a /examples | |
parent | a91af2c9b5dfdca8f077fb3f535e94014e8cf999 (diff) | |
download | pylint-git-d3f545682f301e4b388bb9677ecab1ce51b2668c.tar.gz |
add note about soon useless stream.seek()
Diffstat (limited to 'examples')
-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 811c78502..00fbe89d1 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) |