[pypy-svn] r35285 - pypy/dist/pypy/translator/js/examples

fijal at codespeak.net fijal at codespeak.net
Tue Dec 5 12:30:15 CET 2006


Author: fijal
Date: Tue Dec  5 12:30:14 2006
New Revision: 35285

Modified:
   pypy/dist/pypy/translator/js/examples/server.py
Log:
Moved import thread to support platforms which don't have threads


Modified: pypy/dist/pypy/translator/js/examples/server.py
==============================================================================
--- pypy/dist/pypy/translator/js/examples/server.py	(original)
+++ pypy/dist/pypy/translator/js/examples/server.py	Tue Dec  5 12:30:14 2006
@@ -17,7 +17,6 @@
 
 from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler
 
-import thread, threading
 import re
 import time
 import random
@@ -104,6 +103,7 @@
     httpd = HTTPServer(server_address, handler)
 
     if start_new:
+        import thread
         thread.start_new_thread(httpd.serve_forever, ())
         print "Server started, listening on %s" % (server_address,)
     else:


More information about the pypy-svn mailing list