threads_init only if py24+

This commit is contained in:
Nikos Kouremenos 2005-09-12 11:23:38 +00:00
parent 9986a3cb62
commit ef21462543
1 changed files with 2 additions and 1 deletions

View File

@ -42,7 +42,8 @@ elif gtk.gtk_version < (2, 6, 0):
import gtkexcepthook
import gobject
gobject.threads_init()
if sys.version[:4] >= '2.4':
gobject.threads_init()
import pango
import sre
import signal