| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Only cache modules if no other module with the same name is known yet, and | Torsten Marek | 2014-04-26 | 1 | -1/+1 |
| | | | | | only return cached modules if name and filepath match. | ||||
| * | Add future imports to Module.future_imports. | Torsten Marek | 2014-04-25 | 1 | -0/+3 |
| | | |||||
| * | Merged in flyingsheep/astroid (pull request #15) | Sylvain Th?nault | 2014-03-26 | 1 | -0/+7 |
| |\ | | | | | | | AstroidBuilder.string_build was incompatible with file_stream | ||||
| | * | call transformation for builtin modules as well (though not yet for their ↵ | Sylvain Th?nault | 2014-03-19 | 1 | -0/+6 |
| | | | | | | | | | child nodes) | ||||
| | * | close the byte stream avoid warning w/ python3 | Sylvain Th?nault | 2013-12-24 | 1 | -0/+1 |
| | | | |||||
| * | | moved setting of module.file_encoding to _post_build() | Phil Schaf | 2013-11-25 | 1 | -7/+9 |
| | | | |||||
| * | | extracted string_build from file_build. now string_build allows for ↵ | Phil Schaf | 2013-11-24 | 1 | -4/+9 |
| |/ | | | | file_stream to be accessed. | ||||
| * | [transforms] allow transformation functions on any nodes, not only modules | Sylvain Th?nault | 2013-06-18 | 1 | -4/+1 |
| | | |||||
| * | work on thread safety | Sylvain Th?nault | 2013-06-18 | 1 | -5/+4 |
| | | | | | to start with, rebuilder should not be a class attribute | ||||
| * | rename the project astroid | David Douard | 2013-06-17 | 1 | -23/+23 |
| | | |||||
| * | import cleanups | Sylvain Th?nault | 2013-03-29 | 1 | -2/+2 |
| | | |||||
| * | minor cleanups: drop copyright by me, update others to 2013, droip those in ↵ | Sylvain Th?nault | 2013-03-28 | 1 | -3/+1 |
| | | | | | dumb test data files, delete some trailing whitespaces | ||||
| * | properly call parent's __init__ | Sylvain Th?nault | 2013-03-28 | 1 | -0/+1 |
| | | |||||
| * | closes #62295: avoid "OSError: Too many open files" | Sylvain Th?nault | 2011-12-08 | 1 | -1/+0 |
| | | | | | by moving .file_stream as a Module property opening the file only when needed | ||||
| * | only call transformers if modname specified | Sylvain Th?nault | 2011-10-25 | 1 | -2/+3 |
| | | |||||
| * | closes #77253: provide a way for user code to register astng transformers | Sylvain Th?nault | 2011-09-29 | 1 | -2/+3 |
| | | |||||
| * | cosmetic changes: update/fix copyright and comments, d-t-w | Sylvain Th?nault | 2011-09-27 | 1 | -1/+1 |
| | | |||||
| * | we actually dropped support for python < 2.5 in 0.21 | Sylvain Th?nault | 2011-09-27 | 1 | -3/+1 |
| | | |||||
| * | remove sys.path manipulation around builder.string_build (closes #76159) | Sylvain Th?nault | 2011-09-16 | 1 | -6/+2 |
| | | | | | | | | | That has probably been added in the past as a work around to have relative import working. Not sure if it's still necessary or not, but that's not a correct solution anyway, as this may cause pb with some module wrongly named and added to sys.modules, which may lead to crash (see details on stack overflow, link on the ticket) | ||||
| * | fix file encoding detection with python2.x (closes #70494) | alain lefroy | 2011-07-08 | 1 | -1/+1 |
| | | | | | | | | | | | | | | file encoding declaration shall be in a magic *comment*. from PEP0263:: More precisely, the first or second line must match the regular expression "coding[:=]\s*([-\w.]+)". The first group of this expression is then interpreted as encoding name. If the encoding is unknown to Python, an error is raised during compilation. There must not be any Python statement on the line that contains the encoding declaration. | ||||
| * | cleanuplogilab-astng-version-0.21.1 | Sylvain Th?nault | 2011-01-11 | 1 | -2/+1 |
| | | |||||
| * | change ASTManager cache attribute to astng_cache so it doesn't sound ↵ | Sylvain Th?nault | 2011-01-11 | 1 | -1/+1 |
| | | | | | protected (actually used externally) | ||||
| * | merge | Emile Anclin | 2010-12-15 | 1 | -28/+31 |
| |\ | |||||
| | * | py3k: handle file encoding and stream definition in builder | Emile Anclin | 2010-11-22 | 1 | -4/+49 |
| | | | | | | | | | | | | | | | | | | | | | | | | | In Py3k, We can't do "data = open(path, 'U').read()" anymore since we need to know the encoding to read the file (UnicodeError); instead we have to first guess the encoding by reading the file as a byte stream. We then define + node.file_encoding = encoding + node.file_stream = file_stream to be used by the Pylint checkers | ||||
| * | | py3k: handle file encoding and stream definition in builder | Emile Anclin | 2010-11-22 | 1 | -4/+46 |
| | | | | | | | | | | | | | | | | | | | | | | | | | In Py3k, We can't do "data = open(path, 'U').read()" anymore since we need to know the encoding to read the file (UnicodeError); instead we have to first guess the encoding by reading the file as a byte stream. We then define + node.file_encoding = encoding + node.file_stream = file_stream to be used by the Pylint checkers | ||||
| * | | cleanup: move raw building stuff from builder to raw_building | Emile Anclin | 2010-12-14 | 1 | -109/+2 |
| |/ | |||||
| * | refactoring for tree rebuilding | Emile Anclin | 2010-12-09 | 1 | -29/+44 |
| | | | | | | | | | | rebuilder: move all post build process to builder and don't depend on manager builder: - instanciate ASTNGBuilder's ASTNGManager and TreeRebuilder only once - cleanup build methods; - "_data_build" should become entry point for possible astng pickle cache | ||||
| * | reduce circular imports I: import exceptions directly | Emile Anclin | 2010-12-02 | 1 | -1/+1 |
| | | | | | - rename exceptions module: it's exported to Pylint anyway | ||||
| * | instance attribute support for functions | Emile Anclin | 2010-12-01 | 1 | -0/+2 |
| | | |||||
| * | rename ASTNGBuilder.build to tree_build | Emile Anclin | 2010-12-01 | 1 | -2/+2 |
| | | |||||
| * | cleanup: move some rebuilder stuff to builder; fix _delayed_assattr cache | Emile Anclin | 2010-12-01 | 1 | -3/+61 |
| | | | | | indeed, _delayed_assattr was not reset before building a tree ! | ||||
| * | cleanup: merge _nodes_ast into rebuilder | Emile Anclin | 2010-11-30 | 1 | -1/+1 |
| | | |||||
| * | cleanup: remove python < 2.5 support | Emile Anclin | 2010-11-10 | 1 | -9/+4 |
| | | |||||
| * | cleanup: norm_read can be done directly | Emile Anclin | 2010-11-10 | 1 | -2/+1 |
| | | |||||
| * | remove unused "_file" attribute ; node.file has already been set | Emile Anclin | 2010-11-10 | 1 | -4/+0 |
| | | |||||
| * | explicit imports | Emile Anclin | 2010-10-11 | 1 | -1/+3 |
| | | |||||
| * | BORG : use the borg pattern for ASTNGManager, not singleton | Emile Anclin | 2010-10-11 | 1 | -1/+2 |
| | | | | | Hence we can start breaking the circular imports | ||||
| * | remove other has_key occurences | Emile Anclin | 2010-10-05 | 1 | -1/+1 |
| | | |||||
| * | fix #45959: AttributeError: 'NoneType' object has no attribute 'frame' | Sylvain Th?nault | 2010-09-21 | 1 | -0/+2 |
| | | | | | | due to handling of __class__ when importing from living object (because of missing source code or C-compiled object) | ||||
| * | licence cleanups | Sylvain Th?nault | 2010-09-10 | 1 | -14/+0 |
| | | |||||
| * | fix astng building bug: we've to set module.package flag at the node ↵ | Sylvain Th?nault | 2010-09-10 | 1 | -2/+1 |
| | | | | | | | | creation time otherwise we'll miss this information when infering relative import during the build process (this should fix for instance some problems with numpy) | ||||
| * | proper licensing information (LGPL-2.1). Hope I get it right this time. | Sylvain Th?nault | 2010-04-28 | 1 | -5/+19 |
| | | |||||
| * | more license updates | Sylvain Th?nault | 2010-04-26 | 1 | -3/+3 |
| | | |||||
| * | prepare 0.20.0 release | Emile Anclin | 2010-03-22 | 1 | -2/+2 |
| | | |||||
| * | improve Module node initialisation | Emile Anclin | 2010-03-22 | 1 | -5/+2 |
| | | |||||
| * | remove two useless function calls on tree rebuilding. | Emile Anclin | 2010-03-18 | 1 | -1/+1 |
| | | | | | | | | * rename 'walk' to 'build' * the tree starts always with a Module node, so we can call directly 'visit_module' in the 'build' method, * hence remove '_visit_module'. | ||||
| * | refactor cache handling to avoid infinite recursion error while infering ↵ | Emile Anclin | 2010-03-17 | 1 | -8/+5 |
| | | | | | assignments during build, which potentially tried to rebuild a module we were currently building | ||||
| * | we don't need to pass ast_mode to Treebuilder | Emile Anclin | 2010-02-25 | 1 | -3/+1 |
| | | |||||
| * | set module node information directly on newnode | Emile Anclin | 2010-01-27 | 1 | -7/+8 |
| | | |||||
| * | handle assignement/delete context in visit methods | Emile Anclin | 2010-01-18 | 1 | -1/+1 |
| | | |||||
