deprecate default_secure decorator

make Session secure by default on its own

I think the decorator was an artifact of very early design prototyping, and really isn't necessary.
This commit is contained in:
Min RK 2015-02-22 09:42:30 +01:00
parent dad4ba22b8
commit 96334d4594

View File

@ -77,7 +77,7 @@ from IPython.core.application import (
from IPython.core.profiledir import ProfileDir from IPython.core.profiledir import ProfileDir
from IPython.kernel import KernelManager from IPython.kernel import KernelManager
from IPython.kernel.kernelspec import KernelSpecManager from IPython.kernel.kernelspec import KernelSpecManager
from IPython.kernel.zmq.session import default_secure, Session from IPython.kernel.zmq.session import Session
from IPython.nbformat.sign import NotebookNotary from IPython.nbformat.sign import NotebookNotary
from IPython.utils.importstring import import_item from IPython.utils.importstring import import_item
from IPython.utils import submodule from IPython.utils import submodule
@ -764,9 +764,6 @@ class NotebookApp(BaseIPythonApplication):
self.ipython_kernel_argv = ["--profile-dir", self.profile_dir.location] self.ipython_kernel_argv = ["--profile-dir", self.profile_dir.location]
def init_configurables(self): def init_configurables(self):
# force Session default to be secure
default_secure(self.config)
self.kernel_spec_manager = self.kernel_spec_manager_class( self.kernel_spec_manager = self.kernel_spec_manager_class(
parent=self, parent=self,
ipython_dir=self.ipython_dir, ipython_dir=self.ipython_dir,