From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Pmjwx-0000TF-Fa for garchives@archives.gentoo.org; Tue, 08 Feb 2011 09:33:31 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0C859E084F; Tue, 8 Feb 2011 09:33:23 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id CD5C2E084F for ; Tue, 8 Feb 2011 09:33:23 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 831F31B420F for ; Tue, 8 Feb 2011 09:33:21 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id E34808006A for ; Tue, 8 Feb 2011 09:33:20 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <75c57abd6bdc86a2425d15013128e800c57ced7a.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/portage/ X-VCS-Repository: proj/portage X-VCS-Files: pym/portage/debug.py X-VCS-Directories: pym/portage/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 75c57abd6bdc86a2425d15013128e800c57ced7a Date: Tue, 8 Feb 2011 09:33:20 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: d9da1bb0c7638f8c59307189e7c4f398 commit: 75c57abd6bdc86a2425d15013128e800c57ced7a Author: Zac Medico gentoo org> AuthorDate: Tue Feb 8 09:32:09 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Tue Feb 8 09:32:09 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3D75c57abd portage.debug: handle threading ImportError --- pym/portage/debug.py | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/pym/portage/debug.py b/pym/portage/debug.py index e18d02c..ce642fe 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 =20 -import os, sys, threading +import os +import sys + +try: + import threading +except ImportError: + import dummy_threading as threading =20 import portage.const from portage.util import writemsg