summaryrefslogtreecommitdiff
path: root/examples
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
commit44ea42d4536f7d264cd301ed0000617e6154842b (patch)
treef4dc71abaefe251ff632c085415b83a8514a0882 /examples
parente9f768bcc9a9a42012276e50e0126f30611f3dce (diff)
downloadpylint-44ea42d4536f7d264cd301ed0000617e6154842b.tar.gz
add note about soon useless stream.seek()
Diffstat (limited to 'examples')
-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 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)