From 4c61c0962dc511a2c68a977e9eb27a7d6b6ec742 Mon Sep 17 00:00:00 2001 From: Juozas Masiulis Date: Thu, 28 May 2015 14:29:43 +0300 Subject: [PATCH] fix cPickle not defined error --- gluon/contrib/shell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gluon/contrib/shell.py b/gluon/contrib/shell.py index 8a571e42..e8a1c23a 100755 --- a/gluon/contrib/shell.py +++ b/gluon/contrib/shell.py @@ -126,7 +126,7 @@ class History: def globals_dict(self): """Returns a dictionary view of the globals. """ - return dict((name, cPickle.loads(val)) + return dict((name, pickle.loads(val)) for name, val in zip(self.global_names, self.globals)) def add_unpicklable(self, statement, names):