summaryrefslogtreecommitdiff
path: root/examples/custom_raw.py
diff options
context:
space:
mode:
authorSylvain Thénault <sylvain.thenault@logilab.fr>2011-10-26 09:35:41 +0200
committerSylvain Thénault <sylvain.thenault@logilab.fr>2011-10-26 09:35:41 +0200
commitd3f545682f301e4b388bb9677ecab1ce51b2668c (patch)
treeb9b43f2517699e59f4df5b1df8fe44e824cc417a /examples/custom_raw.py
parenta91af2c9b5dfdca8f077fb3f535e94014e8cf999 (diff)
downloadpylint-git-d3f545682f301e4b388bb9677ecab1ce51b2668c.tar.gz
add note about soon useless stream.seek()
Diffstat (limited to 'examples/custom_raw.py')
-rw-r--r--examples/custom_raw.py4
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)