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):