make all syntax compatible with 3.1 and 2.5

--HG--
branch : trunk
This commit is contained in:
Benjamin Peterson
2009-08-29 13:04:48 -05:00
parent 6f4c6d36a4
commit ee1747fcb4
60 changed files with 230 additions and 177 deletions

View File

@@ -2,6 +2,7 @@ import Queue
import threading
import time
import sys
import py
ERRORMARKER = object()
@@ -52,7 +53,7 @@ class Reply(object):
if result is ERRORMARKER:
self._queue = None
excinfo = self._excinfo
raise excinfo[0], excinfo[1], excinfo[2]
py.builtin._reraise(excinfo[0], excinfo[1], excinfo[2])
return result
class WorkerThread(threading.Thread):