14
0
forked from pool/python-pylint

Accepting request 290987 from home:Nijel:branches:devel:languages:python

- Update to 1.4.3:
    * Remove three warnings: star-args, abstract-class-little-used,
      abstract-class-not-used. These warnings don't add any real value
      and they don't imply errors or problems in the code.
    * Added a new option for controlling the peephole optimizer in astroid.
      The option ``--optimize-ast`` will control the peephole optimizer,
      which is used to optimize a couple of AST subtrees. The current problem
      solved by the peephole optimizer is when multiple joined strings,
      with the addition operator, are encountered. If the numbers of such
      strings is high enough, Pylint will then fail with a maximum recursion
      depth exceeded error, due to its visitor architecture. The peephole
      just transforms such calls, if it can, into the final resulting string
      and this exhibit a problem, because the visit_binop method stops being
      called (in the optimized AST it will be a Const node).

OBS-URL: https://build.opensuse.org/request/show/290987
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=61
This commit is contained in:
Michal Čihař
2015-03-16 12:58:28 +00:00
committed by Git OBS Bridge
parent d634419257
commit e0299a12f8
4 changed files with 22 additions and 4 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0f8bac8952d3a4008e14f7ec92e5a5ebca37069c7183aa430dff6ddcc22fcae4
size 342540

3
pylint-1.4.3.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1dce8c143a5aa15e0638887c2b395e2e823223c63ebaf8d5f432a99e44b29f60
size 342509

View File

@@ -1,3 +1,21 @@
-------------------------------------------------------------------
Mon Mar 16 12:22:48 UTC 2015 - mcihar@suse.cz
- Update to 1.4.3:
* Remove three warnings: star-args, abstract-class-little-used,
abstract-class-not-used. These warnings don't add any real value
and they don't imply errors or problems in the code.
* Added a new option for controlling the peephole optimizer in astroid.
The option ``--optimize-ast`` will control the peephole optimizer,
which is used to optimize a couple of AST subtrees. The current problem
solved by the peephole optimizer is when multiple joined strings,
with the addition operator, are encountered. If the numbers of such
strings is high enough, Pylint will then fail with a maximum recursion
depth exceeded error, due to its visitor architecture. The peephole
just transforms such calls, if it can, into the final resulting string
and this exhibit a problem, because the visit_binop method stops being
called (in the optimized AST it will be a Const node).
-------------------------------------------------------------------
Thu Mar 12 09:20:31 UTC 2015 - mcihar@suse.cz

View File

@@ -18,7 +18,7 @@
%define modname pylint
Name: python-%{modname}
Version: 1.4.2
Version: 1.4.3
Release: 0
Summary: Syntax and style checker for Python code
License: GPL-2.0+