Initial argument breaks 0.9.1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
txAMQP |
Fix Released
|
Medium
|
Esteve Fernandez |
Bug Description
Using the version of txamqp off pypi, the 0.9.1 AMQP spec cannot be used due to a failure caused by the "insist" option being removed in the spec.
The relevant part of the stack trace when trying to run a simple test script is:
File "d:\dev\
result = yield channel0.
exceptions.
A fairly straightforward patch (against trunk) that seems to fix the problem is below. I'm not sure if it there's another way of specifying that parameter that should be handled, and the AMQP site is down which made it difficult to check, so this patch just ignores the parameter.
=== modified file src/txamqp/
--- src/txamqp/
+++ src/txamqp/
@@ -356,7 +356,12 @@
yield self.started.wait()
channel0 = yield self.channel(0)
- result = yield channel0.
+
+ if self.check_0_8():
+ result = yield channel0.
+ else:
+ result = yield channel0.
+
def sendHeartbeat(
Changed in txamqp: | |
status: | Fix Committed → Fix Released |
Thanks for your patch, I'm going to apply it to trunk asap.