From d3f545682f301e4b388bb9677ecab1ce51b2668c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sylvain=20Th=C3=A9nault?= Date: Wed, 26 Oct 2011 09:35:41 +0200 Subject: add note about soon useless stream.seek() --- examples/custom_raw.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'examples/custom_raw.py') 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) -- cgit v1.2.1