Michael Klishin
436f8bf41f
Be Python 3 compatible
...
Python 2.7+ is also supported.
Conflicts:
amqp_codegen.py
2017-05-03 19:35:17 +02:00
Jean-Sébastien Pédron
61880d62f5
amqp_codegen.py: Create the parent directories of the output file
...
[#127354185 ]
2016-08-05 15:07:55 +02:00
Jean-Sébastien Pédron
b51fd3fb00
amqp_codegen.py: Remove shebang line + chmod 644
...
This is a library, not an executable script.
While here, remove trailing spaces.
2015-12-18 16:00:57 +01:00
Loïc Hoguin
4fe4efdf84
Make amqp_codegen.py work with Python 3
2015-12-17 14:00:53 +01:00
derwinlu
d4c4b91bf9
add shebang for python version detection
2015-07-03 11:29:29 +02:00
Simon MacMullen
80236ac4d5
Update copyright for 2014
2014-03-17 17:25:20 +00:00
Simon MacMullen
4dd13bb41b
s/VMware/GoPivotal/g
2013-07-01 10:49:11 +01:00
Emile Joubert
5131c2efd4
Update copyright 2013
2013-01-23 11:27:10 +00:00
Simon MacMullen
5fdcb37152
"When opening a file, it’s preferable to use open() instead of invoking this constructor directly." Also fixes it under Python 3 after 2to3 conversion, according to Alan Antonuk.
2012-10-04 15:23:24 +01:00
Emile Joubert
9d6d1c6c78
Update copyright 2012
2012-02-02 12:51:57 +00:00
Matthew Sackman
ace7ee4c37
Correct all copyright notices
2011-01-19 14:00:43 +00:00
Alexandru Scvortov
d099e83f75
merge bug23645 into default (C client is lacking some methods in its API)
2011-01-14 12:04:42 +00:00
David Wragg
60f1a32145
Don't delete the output file before closing it
...
Windows won't let you, and produces an error, disguising whatever
error led us to try to delete the output file in the first place.
2011-01-13 11:23:01 +00:00
David Wragg
6372794445
Make AmqpClass.spec hold the parsed spec, not the raw spec
...
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.
2011-01-07 01:19:12 +00:00
Simon MacMullen
d8123867d6
Make acc win in domains_merger.
2010-07-07 16:07:45 +01:00
Simon MacMullen
23e5d9ff50
Revert these two merges to new into old, I can't remember why I swapped them round and it makes things rather clearer this way.
2010-07-07 14:42:46 +01:00
Simon MacMullen
5fa3fbf1a7
More renaming :)
2010-07-07 13:43:36 +01:00
Simon MacMullen
b6e6b01baf
Stylistic changes: Rename old to acc, allow_overwrite to allow_accumulate, and o to merged. Add comment. Tweak usage message.
2010-07-07 13:03:24 +01:00
Simon MacMullen
af25b5695c
Remove accidental print statement
2010-07-05 17:30:21 +01:00
Simon MacMullen
4a5a3c0c13
...and back out all those checks after discussion with Matthias.
2010-07-05 17:18:33 +01:00
Simon MacMullen
93096e13ae
Refactor merge_dict_lists_by a bit.
2010-07-05 16:40:31 +01:00
Simon MacMullen
07d8aa56d1
Actually, default-value conflicts all over the place.
2010-07-05 16:34:01 +01:00
Simon MacMullen
fd5af7eb9e
Always break when there's
...
- a method argument defined with two different types or default values
2010-07-05 16:30:28 +01:00
Simon MacMullen
3ee744c477
Always break when there's
...
- a method with two different "synchronous" settings
2010-07-05 16:15:29 +01:00
Simon MacMullen
0427e055ba
Always break when there's
...
- a domain defined with two different types
- a constant defined with two different values
- differences in properties signatures
2010-07-05 16:07:07 +01:00
Simon MacMullen
bd9fef9680
Add --allow-overwrite command line switch.
2010-07-05 15:18:46 +01:00
Simon MacMullen
a10c0c6247
Merge everything, don't die on conflicts.
2010-06-24 15:26:11 +01:00
Tony Garnock-Jones
68a62e19d8
Update class records in-place
2010-06-21 22:49:50 +12:00
Alexandru Scvortov
5c72a777f2
xrange instead of range
2010-06-21 10:32:12 +01:00
Tony Garnock-Jones
6ddef67e2e
Preserve ordering of constants, methods and classes
2010-06-21 14:44:33 +12:00
Alexandru Scvortov
2cc2af31ee
amqp_codegen.py now supports an arbitrary number of functions
2010-06-03 16:11:31 +01:00
Alexandru Scvortov
a815c3dde0
rabbit_framing_spec.hrl is now generated
2010-06-03 14:51:10 +01:00
Tony Garnock-Jones
36035d82a7
Check for duplicate properties.
2010-05-23 22:55:52 +12:00
Tony Garnock-Jones
b496184de1
Extensions mergers.
2009-10-07 16:11:54 +01:00
Tony Garnock-Jones
7f1137b69a
Infrastructure for supporting piecewise spec extension.
2009-10-07 14:55:02 +01:00
David Wragg
77bd658abb
Avoid try: ... except: ... finally: to syppoet python 2.4
...
Python 2.4 (as still used by RHEL 5) doesn't have this syntax. You
have to nest a try: ... except: inside a try: ... finally: ...
Tested on Centos 5.
2009-05-08 16:17:07 +01:00
Hubert Plociniczak
5a72c5ebcd
Write autogenerated code to file instead of to stdout.
...
To avoid generating incorrect code, remove the file on exception.
2009-01-09 19:05:59 +01:00
Tony Garnock-Jones
e150fc2e5a
Advice about macports py25-simplejson
2008-12-10 21:18:36 +00:00
Tony Garnock-Jones
b17673a5c0
Remove dots, for consistency
2008-12-09 15:58:17 +00:00
Tony Garnock-Jones
84ede90b1b
Another tweak.
2008-12-09 15:23:49 +00:00
Tony Garnock-Jones
e0321d0325
Update copyrights.
2008-12-09 14:47:40 +00:00
Hubert Plociniczak
e085151d7c
Use simplejson.py API, move copyright info
...
since comments are not valid in json
2008-11-20 13:32:47 +00:00
Hubert Plociniczak
04189c2322
Print error message when codegen cannot import json
2008-10-10 16:26:06 +01:00
Tony Garnock-Jones
a41fc5ad04
Migrate branch bug17070
2008-07-03 13:45:32 +01:00
Tony Garnock-Jones
5aa63a26a1
Initial commit, from repo-rebase-20080703121916_default (e96543d904a2)
2008-07-03 13:35:10 +01:00