summaryrefslogtreecommitdiff
path: root/astroid/builder.py
diff options
context:
space:
mode:
authorClaudiu Popa <cpopa@cloudbasesolutions.com>2015-08-09 02:06:38 +0300
committerClaudiu Popa <cpopa@cloudbasesolutions.com>2015-08-09 02:06:38 +0300
commit07d5f4ef7293b8dc27151fc29d99d4a6b772e7be (patch)
tree348b11e7807cebd9b2bdf45758cf4c2b78fcccde /astroid/builder.py
parent845169b878543fae3d3eeb0a548f013000879457 (diff)
downloadastroid-git-07d5f4ef7293b8dc27151fc29d99d4a6b772e7be.tar.gz
Move YES to astroid.util.
YES is needed by other components of astroid, components which aren't necessarily related to astroid.bases. In order to reduce circular interdependencies between components, YES is moved into a new module, tailored for various *utilities*.
Diffstat (limited to 'astroid/builder.py')
-rw-r--r--astroid/builder.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/astroid/builder.py b/astroid/builder.py
index 28246479..5d907c8e 100644
--- a/astroid/builder.py
+++ b/astroid/builder.py
@@ -33,6 +33,7 @@ from astroid import manager
from astroid import modutils
from astroid import raw_building
from astroid import rebuilder
+from astroid import util
def _parse(string):
@@ -216,7 +217,7 @@ class AstroidBuilder(raw_building.InspectBuilder):
try:
frame = node.frame()
for infered in node.expr.infer():
- if infered is bases.YES:
+ if infered is util.YES:
continue
try:
if infered.__class__ is bases.Instance: