portage.debug: handle threading ImportError
authorZac Medico <zmedico@gentoo.org>
Tue, 8 Feb 2011 09:32:09 +0000 (01:32 -0800)
committerZac Medico <zmedico@gentoo.org>
Tue, 8 Feb 2011 09:32:09 +0000 (01:32 -0800)
pym/portage/debug.py

index e18d02cf734e730107f226ccac8753a8d2f14060..ce642fef65a9d1975d5df2566cc956e3654d1971 100644 (file)
@@ -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