Author: Maciej Fijalkowski <[email protected]>
Branch: 
Changeset: r60831:babd551bbacd
Date: 2013-02-03 02:02 +0200
http://bitbucket.org/pypy/pypy/changeset/babd551bbacd/

Log:    put OrderedDict back in the namespace

diff --git a/lib-python/2.7/collections.py b/lib-python/2.7/collections.py
--- a/lib-python/2.7/collections.py
+++ b/lib-python/2.7/collections.py
@@ -328,7 +328,8 @@
 
     # Execute the template string in a temporary namespace and
     # support tracing utilities by setting a value for 
frame.f_globals['__name__']
-    namespace = {'__name__': 'namedtuple_%s' % typename}
+    namespace = {'__name__': 'namedtuple_%s' % typename,
+                 'OrderedDict': OrderedDict}
     try:
         exec template in namespace
     except SyntaxError, e:
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to