Author: Ronan Lamy <ronan.l...@gmail.com>
Branch: py3.5
Changeset: r87734:7ea785f59fab
Date: 2016-10-12 18:36 +0100
http://bitbucket.org/pypy/pypy/changeset/7ea785f59fab/

Log:    Fix missing import in our patch to stdlib pickle

diff --git a/lib-python/3/pickle.py b/lib-python/3/pickle.py
--- a/lib-python/3/pickle.py
+++ b/lib-python/3/pickle.py
@@ -850,6 +850,7 @@
 
     def _pickle_maybe_moduledict(self, obj):
         # save module dictionary as "getattr(module, '__dict__')"
+        from types import ModuleType
         try:
             name = obj['__name__']
             if type(name) is not str:
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to