diff options
author | Emile Anclin <emile.anclin@logilab.fr> | 2010-10-11 10:58:55 +0200 |
---|---|---|
committer | Emile Anclin <emile.anclin@logilab.fr> | 2010-10-11 10:58:55 +0200 |
commit | 27399461aa3640831f1f6aaf853ffb876fd922b2 (patch) | |
tree | 7de19e630d9fb45a9ef072022dc5418466bb042f /inference.py | |
parent | c7744105ffc547156b9d014909fc2574e6d63f22 (diff) | |
download | astroid-git-27399461aa3640831f1f6aaf853ffb876fd922b2.tar.gz |
BORG : use the borg pattern for ASTNGManager, not singleton
Hence we can start breaking the circular imports
Diffstat (limited to 'inference.py')
-rw-r--r-- | inference.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/inference.py b/inference.py index df6fdcd0..257177c0 100644 --- a/inference.py +++ b/inference.py @@ -31,13 +31,16 @@ try: except NameError: class GeneratorExit(Exception): pass -from logilab.astng import MANAGER, nodes, raw_building +from logilab.astng import nodes, raw_building +from logilab.astng.manager import ASTNGManager from logilab.astng import ASTNGError, InferenceError, UnresolvableName, \ NoDefault, NotFoundError, ASTNGBuildingException from logilab.astng.bases import YES, Instance, InferenceContext, \ _infer_stmts, copy_context, path_wrapper, raise_if_nothing_infered from logilab.astng.protocols import _arguments_infer_argname +MANAGER = ASTNGManager() + _CONST_PROXY = { type(None): raw_building.build_class('NoneType'), bool: MANAGER.astng_from_class(bool), |