summaryrefslogtreecommitdiff
path: root/astroid/builder.py
diff options
context:
space:
mode:
Diffstat (limited to 'astroid/builder.py')
-rw-r--r--astroid/builder.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/astroid/builder.py b/astroid/builder.py
index 48001e5b..e26d0aeb 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 nodes
from astroid import util
@@ -263,6 +264,10 @@ class AstroidBuilder(raw_building.InspectBuilder):
pass
+def build_namespace_package_module(name, path):
+ return nodes.Module(name, doc='', path=path, package=True)
+
+
def parse(code, module_name='', path=None, apply_transforms=True):
"""Parses a source string in order to obtain an astroid AST from it