From 69438df6048479e08504e13dd18a0f117882bc30 Mon Sep 17 00:00:00 2001 From: dengzhp Date: Thu, 12 Apr 2012 13:45:30 +0800 Subject: [PATCH] use dummy_threading in environments that don't support threading. --- webapp2.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/webapp2.py b/webapp2.py index 96dc905..d635da5 100755 --- a/webapp2.py +++ b/webapp2.py @@ -16,7 +16,10 @@ import os import re import sys -import threading +try: + import threading +except ImportError: + import dummy_threading as threading import urllib import urlparse from wsgiref import handlers