From 5bf13145a470ba3a63a5cd12dbb2036f3a79344a Mon Sep 17 00:00:00 2001 From: Emile Anclin Date: Mon, 16 Mar 2009 11:48:03 +0100 Subject: remove a lot of more rpython stuff --HG-- branch : astng2 --- ChangeLog | 6 +++++- __pkginfo__.py | 4 +--- checkers/__init__.py | 1 - doc/features.txt | 2 -- doc/rpython.txt | 30 ------------------------------ lint.py | 13 ------------- man/pylint.1 | 2 -- test/genbuiltins.py | 6 ------ 8 files changed, 6 insertions(+), 58 deletions(-) delete mode 100644 doc/rpython.txt diff --git a/ChangeLog b/ChangeLog index 238792d41..e98512d25 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,11 @@ ChangeLog for PyLint ==================== -- +2009-03-16 -- 0.17 + * remove rpython : remove all rpython checker, modules and tests + * astng0.18 compatibility: support for _ast module modifies interfaces + +2009-01-28 -- 0.16 * change [en|dis]able-msg-cat options: only accept message categories identified by their first letter (eg IRCWEF) without the need for comma as separator @@ -21,7 +26,6 @@ ChangeLog for PyLint status if any messages other then Information are issued * fix #3711, #5626 (name resolution bug w/ decorator and class members) * fix #6954 - 2008-10-13 -- 0.15.2 * fix #5672: W0706 weirdness ( W0706 removed ) * fix #5998: documentation points to wrong url for mailing list diff --git a/__pkginfo__.py b/__pkginfo__.py index 7f6578f8c..70849f1a8 100644 --- a/__pkginfo__.py +++ b/__pkginfo__.py @@ -53,9 +53,7 @@ scripts = [join('bin', filename) for filename in ('pylint', 'pylint-gui', "symilar", "epylint", "pyreverse")] include_dirs = [join('test', 'input'), - join('test', 'messages'), - join('test', 'rpythonmessages'), - join('test', 'regrtest_data')] + join('test', 'messages')] pyversions = ["2.3", "2.4", "2.5"] diff --git a/checkers/__init__.py b/checkers/__init__.py index 094955d18..914746a71 100644 --- a/checkers/__init__.py +++ b/checkers/__init__.py @@ -27,7 +27,6 @@ Base id of standard checkers (used in msg and report ids): 09: design_analysis 10: newstyle 11: typecheck -12: rpython The raw_metrics checker has no number associated since it doesn't emit any messages nor reports. XXX not true, emit a 07 report ! diff --git a/doc/features.txt b/doc/features.txt index add05a5d2..e98f55c02 100644 --- a/doc/features.txt +++ b/doc/features.txt @@ -12,8 +12,6 @@ General options :init-hook: Python code to execute, usually for sys.path manipulation such as pygtk.require(). -:rpython-mode: - enable the rpython checker which is disabled by default :errors-only: In debug mode, checkers without error messages are disabled and for others, only the ERROR messages are displayed, and no reports are done by default diff --git a/doc/rpython.txt b/doc/rpython.txt deleted file mode 100644 index 218f85490..000000000 --- a/doc/rpython.txt +++ /dev/null @@ -1,30 +0,0 @@ -Since 0.17, pylint contains a Restricted python checker (rpython). -It contains the following checks: - -* unavailable keywords / builtins -* multiple inheritance -* mixing multiple types -* non homogeneous list -* global modification -* negative slice index -* using %r in format string -* warn about special methods that are not implicitly called - -By default the rpython checker is deactivated. Activate it using : - - pylint --rpython-mode -rn ... - -(-rn is disabling statistics reports) or - - pylint --enable-checker=rpython ... - -to get only rpython checks (though in this case you won't be warned about -regular errors). - -Another interesting thing is the rpython dedicated testing framework, -testing that checked things are actually not translatable. I have the idea -that this may be useful to generate some kind of documentation for -features supported by rpython or not, and help spread information when a -feature that wasn't supported is introduced in rpython. That's another -story though... If you're interested, check -pylint/test/test_rpycompilation.py. diff --git a/lint.py b/lint.py index 95971603a..5f571e5c7 100644 --- a/lint.py +++ b/lint.py @@ -760,7 +760,6 @@ group are mutually exclusive.'), self._plugins = [] preprocess_options(args, { # option: (callback, takearg) - 'rpython-mode': (self.cb_rpython_mode, False), 'rcfile': (self.cb_set_rcfile, True), 'load-plugins': (self.cb_add_plugins, True), }) @@ -775,12 +774,6 @@ group are mutually exclusive.'), 'callback' : cb_init_hook, 'help' : 'Python code to execute, usually for sys.path \ manipulation such as pygtk.require().'}), - - ('rpython-mode', - {'action' : 'callback', 'callback' : lambda *args: 1, - 'help' : 'enable the rpython checker which is disabled by default' - }), - #'help' : 'Run into Restricted Python analysis mode.'}), ('help-msg', {'action' : 'callback', 'type' : 'string', 'metavar': '', @@ -890,12 +883,6 @@ been issued by analysing pylint output status code sys.path.pop(0) sys.exit(self.linter.msg_status) - def cb_rpython_mode(self, name, value): - from pylint.checkers.rpython import RPythonChecker - RPythonChecker.enabled = True - #from pylint.rlint import RPyLinter - #self.LinterClass = RPyLinter - def cb_set_rcfile(self, name, value): """callback for option preprocessing (ie before optik parsing)""" self._rcfile = value diff --git a/man/pylint.1 b/man/pylint.1 index ca71c0886..2f11de988 100644 --- a/man/pylint.1 +++ b/man/pylint.1 @@ -37,8 +37,6 @@ show this help message and exit Specify a configuration file. .IP "--init-hook=" Python code to execute, usually for sys.path manipulation such as pygtk.require(). -.IP "--rpython-mode" -enable the rpython checker which is disabled by default .IP "--errors-only, -e" In debug mode, checkers without error messages are disabled and for others, only the ERROR messages are displayed, and no reports are done by default .IP "--profile=" diff --git a/test/genbuiltins.py b/test/genbuiltins.py index c1a433f94..07ffa1ae8 100644 --- a/test/genbuiltins.py +++ b/test/genbuiltins.py @@ -48,16 +48,10 @@ checks = [ ] -for filename in glob('rpythoninput/func_nobuiltin_*'): - remove(filename) -for filename in glob('rpythonmessages/func_nobuiltin_*'): - remove(filename) for check in checks: builtin, _ = check.split('(', 1) if builtin == 'isinstance': builtin = 'basestring' basename = 'func_nobuiltin_%s' % builtin print basename - file('rpythoninput/%s.py' % basename, 'w').write(code % check) - file('rpythonmessages/%s.txt' % basename, 'w').write(msg % builtin) print 'generated %s test' % len(checks) -- cgit v1.2.1