Skip to content
Browse files

Merge branch 'fix185' of https://github.com/ivanov/ipython into ivano…

…v-fix185
  • Loading branch information...
2 parents ed15d14 + 7fb20ba commit 655d021a54b20f06b22cc3edb861c9ed3a1f9187 @fperez fperez committed Feb 23, 2011
Showing with 0 additions and 21 deletions.
  1. +0 −21 IPython/Shell.py
View
21 IPython/Shell.py
@@ -1149,19 +1149,6 @@ def __init__(self,argv=None,user_ns=None,user_global_ns=None,debug=1):
#-----------------------------------------------------------------------------
# Factory functions to actually start the proper thread-aware shell
-def check_gtk(mode):
- try:
- import gtk
- except (ImportError, RuntimeError):
- # GTK not present, or can't be started (no X11, happens in console)
- return mode
- if hasattr(gtk,'set_interactive'):
- gtk.set_interactive(False)
- return 'tkthread'
- else:
- return mode
-
-
def _select_shell(argv):
"""Select a shell from the given argv vector.
@@ -1231,21 +1218,13 @@ def _select_shell(argv):
else:
# Any other backend, use plain Tk
th_mode = 'tkthread'
-
- # New versions of pygtk don't need the brittle threaded support.
- th_mode = check_gtk(th_mode)
-
return mpl_shell[th_mode]
else:
# No pylab requested, just plain threads
try:
th_mode = special_opts.pop()
except KeyError:
th_mode = 'tkthread'
-
- # New versions of pygtk don't need the brittle threaded support.
- if th_mode == 'gthread':
- th_mode = check_gtk(th_mode)
return th_shell[th_mode]

0 comments on commit 655d021

Please sign in to comment.
Something went wrong with that request. Please try again.