From 71ae3522d6cec38c62919bdcab9db59697d91c1e 2011-10-17 02:56:47
From: MinRK <benjaminrk@gmail.com>
Date: 2011-10-17 02:56:47
Subject: [PATCH] fix typo in stripping kernel args in nb and qt

closes #885

---

diff --git a/IPython/frontend/html/notebook/notebookapp.py b/IPython/frontend/html/notebook/notebookapp.py
index 7d26c33..056469f 100644
--- a/IPython/frontend/html/notebook/notebookapp.py
+++ b/IPython/frontend/html/notebook/notebookapp.py
@@ -223,7 +223,7 @@ class IPythonNotebookApp(BaseIPythonApplication):
                 swallow_next = False
                 continue
             if a.startswith('-'):
-                split = a.lstrip('-').split('=')[0]
+                split = a.lstrip('-').split('=')
                 alias = split[0]
                 if alias in notebook_aliases:
                     self.kernel_argv.remove(a)
diff --git a/IPython/frontend/qt/console/qtconsoleapp.py b/IPython/frontend/qt/console/qtconsoleapp.py
index eb26bfe..50c5af4 100644
--- a/IPython/frontend/qt/console/qtconsoleapp.py
+++ b/IPython/frontend/qt/console/qtconsoleapp.py
@@ -342,7 +342,7 @@ class IPythonQtConsoleApp(BaseIPythonApplication):
                 swallow_next = False
                 continue
             if a.startswith('-'):
-                split = a.lstrip('-').split('=')[0]
+                split = a.lstrip('-').split('=')
                 alias = split[0]
                 if alias in qt_aliases:
                     self.kernel_argv.remove(a)