From 3be1e5156ceabdfc3b0778f56a48d0a6778153f4 Mon Sep 17 00:00:00 2001 From: Florian Rabe Date: Sun, 28 Oct 2018 20:58:53 +0100 Subject: [PATCH] no message --- openmath/convert_pickle.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openmath/convert_pickle.py b/openmath/convert_pickle.py index 98b04f9..0c63f9b 100644 --- a/openmath/convert_pickle.py +++ b/openmath/convert_pickle.py @@ -127,7 +127,8 @@ class PickleConverter: importPythonBasics = {"list": lambda *args:list(args), "tuple": lambda *args:tuple(args), "none": None, "dict": lambda *args: dict(args), - "true":True, "false": False} + "true":True, "false": False, + "getattr": lambda x,f: getattr(x,f)} def __init__(self): self._cdbase="http://python.org/"