summaryrefslogtreecommitdiff
path: root/builder.py
diff options
context:
space:
mode:
authorEmile Anclin <emile.anclin@logilab.fr>2010-10-11 10:58:55 +0200
committerEmile Anclin <emile.anclin@logilab.fr>2010-10-11 10:58:55 +0200
commit27399461aa3640831f1f6aaf853ffb876fd922b2 (patch)
tree7de19e630d9fb45a9ef072022dc5418466bb042f /builder.py
parentc7744105ffc547156b9d014909fc2574e6d63f22 (diff)
downloadastroid-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.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/builder.py b/builder.py
index 51be50a3..73732805 100644
--- a/builder.py
+++ b/builder.py
@@ -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