Fixed env bug.
authorFredrik Tolf <fredrik@dolda2000.com>
Sun, 5 Feb 2012 17:36:45 +0000 (18:36 +0100)
committerFredrik Tolf <fredrik@dolda2000.com>
Sun, 5 Feb 2012 17:36:45 +0000 (18:36 +0100)
wrw/env.py

index 6c7e859..56d040d 100644 (file)
@@ -11,7 +11,7 @@ class stack(object):
 class environment(object):
     __slots__ = ["parent", "map"]
     def __init__(self, parent = None):
-        self.parent = None
+        self.parent = parent
         self.map = weakref.WeakKeyDictionary()
 
     def get(self, var):