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: ...@@ -304,10 +304,13 @@ class OpenerDirector:
self.handle_error[protocol] = lookup self.handle_error[protocol] = lookup
elif condition == "open": elif condition == "open":
kind = protocol kind = protocol
lookup = getattr(self, "handle_"+condition) lookup = self.handle_open
elif condition in ["response", "request"]: elif condition == "response":
kind = protocol kind = protocol
lookup = getattr(self, "process_"+condition) lookup = self.process_response
elif condition == "request":
kind = protocol
lookup = self.process_request
else: else:
continue 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