From c5393421f8d5958976d67d99920ee1b56db5999b 2018-06-15 11:09:57 From: gpotter2 Date: 2018-06-15 11:09:57 Subject: [PATCH] Add __spec__ to DummyMod --- diff --git a/IPython/core/interactiveshell.py b/IPython/core/interactiveshell.py index 4593c6b..69bf523 100644 --- a/IPython/core/interactiveshell.py +++ b/IPython/core/interactiveshell.py @@ -170,7 +170,7 @@ class SeparateUnicode(Unicode): class DummyMod(object): """A dummy module used for IPython's interactive module when a namespace must be assigned to the module's __dict__.""" - pass + __spec__ = None class ExecutionInfo(object):