From 3108c9124ae36b05659b175f063270c2434de8e4 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Tue, 4 Mar 2014 20:50:34 +0100 Subject: [PATCH] Fix thread import for py3 --- dosagelib/director.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dosagelib/director.py b/dosagelib/director.py index 9b2b4c707..daf4ab461 100644 --- a/dosagelib/director.py +++ b/dosagelib/director.py @@ -1,8 +1,11 @@ # -*- coding: iso-8859-1 -*- # Copyright (C) 2014 Bastian Kleineidam -import threading -import thread import os +import threading +try: + import _thread as thread +except ImportError: + import thread try: from Queue import Queue, Empty except ImportError: