Partial py3k-ification of Doc/library/: convert has_key references into either 'k in d' or __contains__; normalize raise statements; convert print statements into print function calls.
diff --git a/Doc/library/thread.rst b/Doc/library/thread.rst
index a2eeb8a..32437dc 100644
--- a/Doc/library/thread.rst
+++ b/Doc/library/thread.rst
@@ -135,7 +135,7 @@
a_lock = thread.allocate_lock()
with a_lock:
- print "a_lock is locked while this executes"
+ print("a_lock is locked while this executes")
**Caveats:**