This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients belopolsky, pitrou
Date 2010-11-05.20:21:10
SpamBayes Score 0.0006978643
Marked as misclassified No
Message-id <1288988479.33.0.578006700843.issue10330@psf.upfronthosting.co.za>
In-reply-to
Content
The trace module doesn't work when threading is disabled ("./configure --without-threads"). The following patch fixes this:

diff -r 345827dcf409 Lib/trace.py
--- a/Lib/trace.py      Fri Nov 05 20:58:28 2010 +0100
+++ b/Lib/trace.py      Fri Nov 05 21:20:09 2010 +0100
@@ -53,7 +53,10 @@ import linecache
 import os
 import re
 import sys
-import threading
+try:
+    import threading
+except ImportError:
+    import dummy_threading as threading
 import time
 import token
 import tokenize
History
Date User Action Args
2010-11-05 20:21:19pitrousetrecipients: + pitrou, belopolsky
2010-11-05 20:21:19pitrousetmessageid: <1288988479.33.0.578006700843.issue10330@psf.upfronthosting.co.za>
2010-11-05 20:21:11pitroulinkissue10330 messages
2010-11-05 20:21:10pitroucreate