Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Merged in jayvdb/astroid/use_print_function (pull request #91) | Claudiu Popa | 2015-10-19 | 1 | -1/+1 | |
|\ | | | | | | | Fix SyntaxError on Python 2 for print function | |||||
| * | Merged in jayvdb/astroid/print_statement (pull request #90) | Claudiu Popa | 2015-10-19 | 0 | -0/+0 | |
| |\ | | | | | | | | | | Replace __future__.print_statement with print_function | |||||
| * | | Replace __future__.print_statement with print_functionprint_statement | John Vandenberg | 2015-10-19 | 1 | -1/+1 | |
| |/ | | | | | | | | | | | 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. | |||||
* | | Fix SyntaxError on Python 2 for print functionuse_print_function | John Vandenberg | 2015-10-19 | 1 | -0/+1 | |
|/ | ||||||
* | Don't reinstall astroid, use the one that's already available. | Claudiu Popa | 2015-10-16 | 1 | -2/+0 | |
| | ||||||
* | Fix Arguments' _other_fields | Ceridwen | 2015-10-12 | 1 | -1/+1 | |
| | ||||||
* | Move proxy_alias function to util.py | Claudiu Popa | 2015-10-11 | 3 | -28/+32 | |
| | ||||||
* | Remove doctype and future imports which aren't useful. | Claudiu Popa | 2015-10-11 | 10 | -15/+1 | |
| | ||||||
* | Remove unused variable. | Claudiu Popa | 2015-10-11 | 1 | -1/+0 | |
| | ||||||
* | Move decorators from bases to decorators module. | Claudiu Popa | 2015-10-11 | 5 | -76/+81 | |
| | ||||||
* | Move bases.NodeNG and bases.Statement in node_classes | Claudiu Popa | 2015-10-11 | 4 | -538/+537 | |
| | | | | | | We're doing this in order to reduce the dependency hell which occurs when a module such as bases.py wants to use classes defined in node_classes. | |||||
* | Remove trailing whitespace. | Claudiu Popa | 2015-10-09 | 1 | -1/+1 | |
| | ||||||
* | The functional form of Enum returns a class, not an instance. | Claudiu Popa | 2015-10-09 | 2 | -1/+13 | |
| | ||||||
* | Support PEP 448 unpackings in dict calls. | Claudiu Popa | 2015-10-08 | 2 | -11/+47 | |
| | ||||||
* | Make duplicated_kwargs a public API. | Claudiu Popa | 2015-10-08 | 2 | -4/+8 | |
| | ||||||
* | Fix pylint warnings. | Claudiu Popa | 2015-10-07 | 1 | -12/+11 | |
| | ||||||
* | Change arguments.ArgumentsInference to arguments.CallSite | Claudiu Popa | 2015-10-07 | 3 | -33/+155 | |
| | | | | | | This new class can be used to obtain the already unpacked arguments and keyword arguments that a call site uses, which is especially useful when some of arguments are packed into Starred nodes. | |||||
* | Change the signature of the ArgumentInference class to accept directly the ↵ | Claudiu Popa | 2015-10-07 | 2 | -10/+13 | |
| | | | | arguments and the keywords of a call site. | |||||
* | Add brain tips for PyQt signals for supporting emit / connect and disconnect ↵ | Claudiu Popa | 2015-10-06 | 3 | -22/+57 | |
| | | | | methods on them | |||||
* | Remove trailing whitespace. | Claudiu Popa | 2015-10-06 | 1 | -1/+0 | |
| | ||||||
* | Add support for looking up into DictUnpack's value in Dict.getitem | Claudiu Popa | 2015-10-06 | 2 | -0/+15 | |
| | ||||||
* | Remove the value from the DictUnpack node, since it's used mostly to ↵ | Claudiu Popa | 2015-10-06 | 2 | -10/+1 | |
| | | | | represent the ** operation. | |||||
* | Fix pylint errors. | Claudiu Popa | 2015-10-06 | 2 | -8/+8 | |
| | ||||||
* | Add a new node, DictUnpack, for representing the unpacking of a dict using ↵ | Claudiu Popa | 2015-10-06 | 6 | -9/+71 | |
| | | | | | | | | | PEP 448 This is a different approach than what the builtin ast module does, since it just uses None to represent this kind of operation, which seems conceptually wrong, due to the fact the AST contains non-AST nodes. Closes issue #206. | |||||
* | Remove trailing whitespace. | Claudiu Popa | 2015-10-03 | 1 | -1/+1 | |
| | ||||||
* | Move objects.Slice back into nodes.Slice | Claudiu Popa | 2015-10-03 | 4 | -49/+37 | |
| | | | | | | We did this because objects.Slice had more capabilities than nodes.Slice, such as inferring the slice attributes (start, stop, step) and it was used mostly for inferring the slice() builtin. | |||||
* | Don't wrap instance's arguments into a Const, instead let the original index ↵ | Claudiu Popa | 2015-10-03 | 2 | -19/+28 | |
| | | | | | | | | object to be used. This prevents a crash when the original index object is a slice object, which was wrapped inadvertendly in a Const node, leading to a crash later on if the said object was inferred. Closes issue #200. | |||||
* | Add a test for issue #188, which was triggered because the transforms ↵ | Claudiu Popa | 2015-10-03 | 1 | -0/+25 | |
| | | | | weren't executed in a separated step. Closes issue #188. | |||||
* | Fix a crash which occurred when inferring unary operands which yielded ↵ | Claudiu Popa | 2015-10-03 | 2 | -0/+10 | |
| | | | | objects which weren't callable. | |||||
* | Skip objects which aren't callable when inferring an instance's call result. | Claudiu Popa | 2015-10-03 | 2 | -1/+17 | |
| | ||||||
* | Make context an optional argument for BoundMethod.infer_call_result. | Claudiu Popa | 2015-10-03 | 1 | -1/+3 | |
| | ||||||
* | Ignore non-callables when looking for special method implementations of bool ↵ | Claudiu Popa | 2015-10-03 | 2 | -1/+22 | |
| | | | | | | | | methods This commit verifies what a special method actually is and if it's not a callable, then we return an YES object, since there's a big chance to not make sense of the instance's boolean value. | |||||
* | Import test from pylint regarding a crash that used to occur a long time ago. | Claudiu Popa | 2015-09-30 | 1 | -0/+10 | |
| | ||||||
* | Import test for pylint regarding context inference in relation with factory ↵ | Claudiu Popa | 2015-09-29 | 1 | -0/+19 | |
| | | | | methods. | |||||
* | Fix a crash which occurred when extra_decorators was considering non-class ↵ | Claudiu Popa | 2015-09-29 | 2 | -1/+27 | |
| | | | | level assignments to the same name as decorator calls. | |||||
* | Remove InferenceContext's __repr__ implementation, since it makes it ↵ | Claudiu Popa | 2015-09-28 | 1 | -6/+0 | |
| | | | | unusable to debug in a repl. | |||||
* | Add test for issue #183. | Claudiu Popa | 2015-09-27 | 1 | -0/+9 | |
| | ||||||
* | Hopefully actually fix #185 | Ceridwen | 2015-09-26 | 2 | -2/+13 | |
| | ||||||
* | Remove trailing whitespace. | Claudiu Popa | 2015-09-26 | 2 | -3/+3 | |
| | ||||||
* | Add a separate Slice object, which is used when inferring the slice builtin call | Claudiu Popa | 2015-09-26 | 3 | -3/+74 | |
| | | | | | | | | | | | | | | | | | | | | We do this because of an internal distinction we're making between AST nodes and inference objects. The following distinction might help for understanding better where an AST node is used and where an inference object is used: * if the AST node can be used on its own, e.g. List, Tuple, etc, then the AST can be used in the inference. They have a syntactic display and can be written on its own, e.g. "[]" is a valid list. That's why the inference of their respective builtins (list, tuple, set etc) returns an AST node when inferring. * if the AST node is part of syntax and can't be used on its own. This is the case for slices for instance, e.g "[2:3:4]". In this case, trying to write "2:3:4" on its own will fail. The respective builtin (slice) returns a custom object when inferring and not an AST node per se. | |||||
* | remove the test env for..testing purposes. | Claudiu Popa | 2015-09-26 | 1 | -6/+0 | |
| | ||||||
* | Fix pylint errors. | Claudiu Popa | 2015-09-26 | 2 | -5/+3 | |
| | ||||||
* | Use the object.__new__ decorator to create a singleton instance of the YES ↵ | Claudiu Popa | 2015-09-26 | 1 | -5/+3 | |
| | | | | object. | |||||
* | Fix a regression with the reraise of AstroidBuildingException. | Claudiu Popa | 2015-09-26 | 1 | -1/+6 | |
| | | | | | | The entire original exception object needs to be passed to AstroidBuildingException in builder.AstroidBuilder._file_build, since pylint uses this as an introspection method, in order to find what error happened. | |||||
* | Revert the tox change, since drone.io fails. | Claudiu Popa | 2015-09-26 | 1 | -1/+1 | |
| | ||||||
* | Make instancecheck a private function. | Claudiu Popa | 2015-09-26 | 1 | -2/+2 | |
| | ||||||
* | Merged in ceridwenv/astroid (pull request #88) | Claudiu Popa | 2015-09-26 | 12 | -36/+59 | |
|\ | | | | | | | Use six.reraise to avoid losing tracebacks for simple cases | |||||
| * | Add helper function for reraising exceptions | Ceridwen | 2015-09-21 | 11 | -96/+47 | |
| | | ||||||
| * | Use six.reraise to avoid losing tracebacks for simple cases | Ceridwen | 2015-09-21 | 11 | -36/+108 | |
| | | ||||||
* | | Add numpy transform tip for understanding numpy's calculation of __all__. | Claudiu Popa | 2015-09-26 | 2 | -3/+19 | |
| | |