summaryrefslogtreecommitdiff
path: root/examples/custom_raw.py
diff options
context:
space:
mode:
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)