SF patch #1028908
(John J Lee)

Minor code clarification and simplification.
diff --git a/Lib/urllib2.py b/Lib/urllib2.py
index a4046d3..ae2ab17 100644
--- a/Lib/urllib2.py
+++ b/Lib/urllib2.py
@@ -304,10 +304,13 @@
                 self.handle_error[protocol] = lookup
             elif condition == "open":
                 kind = protocol
-                lookup = getattr(self, "handle_"+condition)
-            elif condition in ["response", "request"]:
+                lookup = self.handle_open
+            elif condition == "response":
                 kind = protocol
-                lookup = getattr(self, "process_"+condition)
+                lookup = self.process_response
+            elif condition == "request":
+                kind = protocol
+                lookup = self.process_request
             else:
                 continue