SF patch #1028908
(John J Lee) Minor code clarification and simplification.
This commit is contained in:
parent
bab4143348
commit
f7bf02ded5
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue