XEvent.py: Added support for ExposeEvent.
profile.py: Some speed improvements (I hope).
rect.py: Bug fix in union().
diff --git a/Lib/lib-stdwin/rect.py b/Lib/lib-stdwin/rect.py
index 9bc6342..393eafd 100644
--- a/Lib/lib-stdwin/rect.py
+++ b/Lib/lib-stdwin/rect.py
@@ -46,7 +46,7 @@
 # This works with a list or tuple argument.
 #
 def union(list):
-	(left, top), (right, bottom) = empty
+	(left, top), (right, bottom) = list[0]
 	for (l, t), (r, b) in list[1:]:
 		if not is_empty(((l, t), (r, b))):
 			if l < left: left = l