| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
We had two "copyrighted" files in the repo but they were containing
a basic class with a simple `__init__` method, so there's no need
to keep that around.
Close #685
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
The precedence and associativity rules of operators are respected
and parens are only wrapped around child nodes when needed
A single If node inside the else block is output as `elif`
Unneccesary parens in with statements are removed
Unneccesary parens in tuple returns are removed
Doc strings in classes and functions no longer get additional indenting
|
| |
|
|
| |
just for once single use case
|
| | |
|
| |
|
|
|
|
| |
__init__.py in filename (#408)
Fixes PyCQA/pylint#1348
|
| | |
|
| |
|
|
| |
multiple directories contributing to the same namespace.
|
| |
|
|
| |
and add a test for implicit namespace packages.
|
| | |
|
| |
|
|
|
|
|
|
| |
They are subclasses of AstroidBuildingException and are raised when
a module can't be imported from various reasons.
Also do_import_module lets the errors to bubble up without converting
them to InferenceError. This particular conversion happens only
during the inference.
|
| |
|
|
|
|
|
|
|
| |
1c35a97 fixed Python 2 only print statements, and imported
a mix of __future__.print_function and __future__.print_statement.
1826d98 fixed most of them, however this one still remains.
--HG--
branch : print_statement
|
| |\ |
|
| | |
| |
| |
| |
| |
| |
| |
| | |
Instead of logilab.common.shellutils.ProgressBar we use
astroid.node_classes.Name now.
--HG--
branch : no-logilab-common
|
| |/ |
|
| |
|
|
|
|
|
| |
This was moved since it is the only known client of this module.
No other change was made to the exported API. This doesn't go
through a normal deprecation cycle, since I really want to clean it up
at a faster pace.
|
| | |
|
| |
|
|
|
| |
--HG--
branch : fix-python3-tests
|
| |
|
|
|
| |
--HG--
branch : fix-python3-tests
|
| |
|
|
|
|
|
|
| |
The first use of the AST peephole optimizer is the optimization of multiple
BinOp nodes. This removes recursivity in the rebuilder when dealing
with a lot of small strings joined by the
addition operator. which are
now precomputed to the final string. Closes issue #59.
|
|
|
Also modernized a lot of test code. This makes it possible to run the
tests from both the base directory of the project as well as the
astroid package.
Since the packages have the same name for Python 2 and 3, there is less
version-dependent code in the tests.
|