summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Wragg <david@rabbitmq.com>2011-01-07 01:19:12 +0000
committerDavid Wragg <david@rabbitmq.com>2011-01-07 01:19:12 +0000
commit624d2cc63eb04786f5e234fb92c60f5153a1a082 (patch)
tree31e2bf69aa2334ebaec49cf81a6ddaf71b6aafd5
parent4273d91622bad25d6bd2402aba724bc6b0f05107 (diff)
downloadrabbitmq-codegen-bug23645.tar.gz
Make AmqpClass.spec hold the parsed spec, not the raw specbug23645
AmqpClass previously held the raw JSON spec data, rather than the parsed AmqpSpec. But the latter is clearly better - it's more useful in general, and contains the former. No supported clients were using this anyway.
-rw-r--r--amqp_codegen.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/amqp_codegen.py b/amqp_codegen.py
index a10cc6d..cbfdcf8 100644
--- a/amqp_codegen.py
+++ b/amqp_codegen.py
@@ -172,7 +172,7 @@ class AmqpSpec:
self.classes = []
for element in self.spec['classes']:
- self.classes.append(AmqpClass(self.spec, element))
+ self.classes.append(AmqpClass(self, element))
def allClasses(self):
return self.classes