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 /builder.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 'builder.py')
-rw-r--r-- | builder.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -38,6 +38,7 @@ from logilab.common.modutils import modpath_from_file from logilab.astng._exceptions import ASTNGBuildingException from logilab.astng.raw_building import * +from logilab.astng.manager import ASTNGManager try: from _ast import PyCF_ONLY_AST @@ -57,7 +58,7 @@ class ASTNGBuilder: def __init__(self, manager=None): if manager is None: - from logilab.astng import MANAGER as manager + manager = ASTNGManager() self._manager = manager self._module = None self._file = None |