Commit Graph

11 Commits

Author SHA1 Message Date
Claudiu Popa
538c30ef91 Import has_known_bases and safe_infer back into pylint from astroid, until the latter stabilizes its API.
Currently astroid goes into a total revamp, having a couple of development branches with partially
incompatible APIs, which means that pylint can't rely on the exact location of has_known_bases
and safe_infer until astroid reaches a new major release. With this in mind, these two
functions are backported in pylint again.
2015-11-20 12:52:19 +02:00
Claudiu Popa
222be7b46c Make pylint work with Python 3.5 changes in astroid. 2015-09-18 22:43:24 +00:00
Claudiu Popa
a1b3c9623a Use the new node names for the visit and leave methods
Also, emit a PendingDeprecationWarning if the old names are still
used, this support being removed in pylint 2.0.
2015-08-26 22:09:27 +03:00
Claudiu Popa
7378c72503 Update pylint to use the new astroid AST names and methods
Also improve a couple of imports and added support for the
old visit_ names. Priority will have the old visit_ names, such
as visit_discard over visit_expr, visit_callfunc over visit_call
etc.
2015-08-25 21:06:19 +03:00
Rene Zhang
3b98cd7ae2 Fix inference error on string format 2015-08-20 18:01:44 -07:00
Claudiu Popa
d8bd67823e Use the new CallFunc.keywords instead of filtering out Keyword from CallFunc.args. 2015-08-08 23:48:38 +03:00
Claudiu Popa
47b1c77360 Use safe_infer and has_known_bases from astroid.helpers. Closes issue #593. 2015-07-06 19:57:11 +03:00
Claudiu Popa
2a3e3b1d5e Remove trailing whitespace. 2015-05-24 20:16:47 +03:00
Claudiu Popa
23f9ff743c Handle format-combined-specification explicitly on Jython, where parsing such a string fails with ValueError, contrary to CPython, where the failure is in the intepreter. 2015-05-24 15:19:30 +03:00
Claudiu Popa
d8d7a23216 Don't fail in the string checker when encountering a bytes string on Python 3 with a .format method called. 2015-04-01 13:47:51 +03:00
Ionel Cristian Maries
26eb7f9a2e Move all package files to a pylint package. 2015-02-14 18:13:20 +02:00