diff options
author | Simu Toni <simutoni@gmail.com> | 2015-03-28 18:28:08 +0200 |
---|---|---|
committer | Simu Toni <simutoni@gmail.com> | 2015-03-28 18:28:08 +0200 |
commit | bc4d7d822238e2acf738cb9437ccae11034e5e91 (patch) | |
tree | e2372649b6fc11c6232ce08d3f679571a0997173 /pylint/lint.py | |
parent | 8828a5bb41eb9198a3d80983d655d445ac917b14 (diff) | |
download | pylint-bc4d7d822238e2acf738cb9437ccae11034e5e91.tar.gz |
issue-422 solved some pylint warnings when running pylint on pylint code base
Diffstat (limited to 'pylint/lint.py')
-rw-r--r-- | pylint/lint.py | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/pylint/lint.py b/pylint/lint.py index 0df8475..aeef0fa 100644 --- a/pylint/lint.py +++ b/pylint/lint.py @@ -402,24 +402,24 @@ class PyLinter(configuration.OptionsManagerMixIn, ' may run arbitrary code.')}), ('extension-pkg-whitelist', - {'type': 'csv', 'metavar': '<pkg[,pkg]>', 'default': [], - 'help': ('A comma-separated list of package or module names' - ' from where C extensions may be loaded. Extensions are' - ' loading into the active Python interpreter and may run' - ' arbitrary code')} - ), + {'type': 'csv', 'metavar': '<pkg[,pkg]>', 'default': [], + 'help': ('A comma-separated list of package or module names' + ' from where C extensions may be loaded. Extensions are' + ' loading into the active Python interpreter and may run' + ' arbitrary code')} + ), ('optimize-ast', - {'type': 'yn', 'metavar': '<yn>', 'default': False, - 'help': ('Allow optimization of some AST trees. This will ' - 'activate a peephole AST optimizer, which will ' - 'apply various small optimizations. For instance, ' - 'it can be used to obtain the result of joining ' - 'multiple strings with the addition operator. ' - 'Joining a lot of strings can lead to a maximum ' - 'recursion error in Pylint and this flag can prevent ' - 'that. It has one side effect, the resulting AST ' - 'will be different than the one from reality.')} + {'type': 'yn', 'metavar': '<yn>', 'default': False, + 'help': ('Allow optimization of some AST trees. This will ' + 'activate a peephole AST optimizer, which will ' + 'apply various small optimizations. For instance, ' + 'it can be used to obtain the result of joining ' + 'multiple strings with the addition operator. ' + 'Joining a lot of strings can lead to a maximum ' + 'recursion error in Pylint and this flag can prevent ' + 'that. It has one side effect, the resulting AST ' + 'will be different than the one from reality.')} ), ) @@ -528,8 +528,8 @@ class PyLinter(configuration.OptionsManagerMixIn, meth = self._options_methods[optname] except KeyError: meth = self._bw_options_methods[optname] - warnings.warn('%s is deprecated, replace it by %s' % ( - optname, optname.split('-')[0]), + warnings.warn('%s is deprecated, replace it by %s' % (optname, + optname.split('-')[0]), DeprecationWarning) value = optik_ext.check_csv(None, optname, value) if isinstance(value, (list, tuple)): |