Commit f7bf02de authored by Raymond Hettinger's avatar Raymond Hettinger

SF patch #1028908

(John J Lee)

Minor code clarification and simplification.
parent bab41433
......@@ -304,10 +304,13 @@ class OpenerDirector:
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment