Import StringIO so it can be used.

#12 Merged at 53fc6ca
Repository
xcolour
Branch
stringio
Repository
ianb
Branch
default
Author
  1. Matt Singleton
Reviewers
Description

When killing threads, httpserver.py tries to pprint the wsgi environment. If that fails, it prints the traceback to a StringIO for later formatting. StringIO never gets imported in httpserver.py, so if pprint fails, kill_hung_thread throws an exception and the thread never actually gets killed. This patch just adds the missing import.

Comments (0)