diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-02-08 01:32:09 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-02-08 12:45:45 -0800 |
commit | 4bb602539fc3e87961d06c447a7d7e1adf9252c5 (patch) | |
tree | eefdf7cf3e9da1eb3dd7ee262628787a953f780f | |
parent | 052319652c0ccd85f1c30dd40add961015a99bfa (diff) | |
download | portage-4bb602539fc3e87961d06c447a7d7e1adf9252c5.tar.gz portage-4bb602539fc3e87961d06c447a7d7e1adf9252c5.tar.bz2 portage-4bb602539fc3e87961d06c447a7d7e1adf9252c5.zip |
portage.debug: handle threading ImportError
-rw-r--r-- | 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 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 |