Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Added check for response function #1829
What does this PR do?
Adds write support for AH (Ad Hoc) format to stream.write(), It is an addition to PR #1757
Why was it initiated? Any relevant Issues?
related to issue #1754
I'd personally either like to see this as
Yea- this is one of the instances in our code base where it does already happen. I'd be fine with a construct like this which offers a cleaner interface but also falls back to using the existing
def _write_ah(..., response=None, ...): ... # First use passed response, otherwise look in trace.stats. if response is None and "response" in tr.stats: response = tr.stats.response if response: ...