summaryrefslogtreecommitdiff
path: root/raw_building.py
diff options
context:
space:
mode:
authorSylvain Thénault <sylvain.thenault@logilab.fr>2009-03-13 12:59:32 +0100
committerSylvain Thénault <sylvain.thenault@logilab.fr>2009-03-13 12:59:32 +0100
commit96cf206df5ba34e223fac3cc8827ba723de31e25 (patch)
tree280ad29c87974016d23c4068263f24e222f6f4c7 /raw_building.py
parentddb4c3780adf3d4cca72770dcf52de107f044940 (diff)
downloadastroid-git-96cf206df5ba34e223fac3cc8827ba723de31e25.tar.gz
drop dict_factory method, use const_factory instead
--HG-- branch : _ast_compat
Diffstat (limited to 'raw_building.py')
-rw-r--r--raw_building.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/raw_building.py b/raw_building.py
index 378f745a..afc21094 100644
--- a/raw_building.py
+++ b/raw_building.py
@@ -36,7 +36,7 @@ def _attach_local_node(parent, node, name):
def attach___dict__(node):
"""attach the __dict__ attribute to Class and Module objects"""
- dictn = nodes.dict_factory()
+ dictn = nodes.const_factory({})
dictn.parent = node
node.locals['__dict__'] = [dictn]