From: Zac Medico Date: Tue, 8 Feb 2011 09:32:09 +0000 (-0800) Subject: portage.debug: handle threading ImportError X-Git-Tag: v2.1.9.39~5 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4bb602539fc3e87961d06c447a7d7e1adf9252c5;p=portage.git portage.debug: handle threading ImportError --- diff --git a/pym/portage/debug.py b/pym/portage/debug.py index e18d02cf7..ce642fef6 100644 --- a/pym/portage/debug.py +++ b/pym/portage/debug.py @@ -1,7 +1,13 @@ -# Copyright 1999-2009 Gentoo Foundation +# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -import os, sys, threading +import os +import sys + +try: + import threading +except ImportError: + import dummy_threading as threading import portage.const from portage.util import writemsg