summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Garnock-Jones <tonyg@lshift.net>2009-05-12 16:33:36 +0100
committerTony Garnock-Jones <tonyg@lshift.net>2009-05-12 16:33:36 +0100
commit794a10ad7417485eb58637c4aa9bde03a23de11b (patch)
tree5a3cbd54c4ba577c99ac1516554d120876f4f417
parentd8da8febd1e4010100194c2db32df255db953341 (diff)
downloadrabbitmq-codegen-794a10ad7417485eb58637c4aa9bde03a23de11b.tar.gz
Read revision from JSON spec, where present
-rw-r--r--amqp_codegen.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/amqp_codegen.py b/amqp_codegen.py
index ff00c8b..a2ad7a8 100644
--- a/amqp_codegen.py
+++ b/amqp_codegen.py
@@ -65,6 +65,7 @@ class AmqpSpec:
self.major = self.spec['major-version']
self.minor = self.spec['minor-version']
+ self.revision = self.spec.get('revision', 0)
self.port = self.spec['port']
self.domains = {}