diff options
author | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2014-11-19 09:49:49 +0100 |
---|---|---|
committer | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2014-11-19 09:49:49 +0100 |
commit | b14dfa4485c705990c7820014cdae78632732553 (patch) | |
tree | 57c65a798c31376e79b79ec7633a1b4b8b4172ea | |
parent | 26003f0df1e3243fc9ea44b0a4d1b9df5451e3c9 (diff) | |
download | pylint-git-b14dfa4485c705990c7820014cdae78632732553.tar.gz |
drop BaseRawChecker bw compat
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | checkers/__init__.py | 25 |
2 files changed, 3 insertions, 25 deletions
@@ -2,6 +2,9 @@ ChangeLog for Pylint ==================== -- + * Drop BaseRawChecker class which were only there for backward + compat for a while now + * Don't try to analyze string formatting with objects coming from function arguments. Closes issue #373. diff --git a/checkers/__init__.py b/checkers/__init__.py index 916f95eb6..181a2b22d 100644 --- a/checkers/__init__.py +++ b/checkers/__init__.py @@ -109,31 +109,6 @@ class BaseChecker(OptionsProviderMixIn): """called after visiting project (i.e set of modules)""" -class BaseRawChecker(BaseChecker): - """base class for raw checkers""" - - def process_module(self, node): - """process a module - - the module's content is accessible via the stream object - - stream must implement the readline method - """ - warnings.warn("Modules that need access to the tokens should " - "use the ITokenChecker interface.", - DeprecationWarning) - stream = node.file_stream - stream.seek(0) # XXX may be removed with astroid > 0.23 - if sys.version_info <= (3, 0): - self.process_tokens(tokenize.generate_tokens(stream.readline)) - else: - self.process_tokens(tokenize.tokenize(stream.readline)) - - def process_tokens(self, tokens): - """should be overridden by subclasses""" - raise NotImplementedError() - - class BaseTokenChecker(BaseChecker): """Base class for checkers that want to have access to the token stream.""" |