summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2012-10-04 15:25:59 +0100
committerSimon MacMullen <simon@rabbitmq.com>2012-10-04 15:25:59 +0100
commit0a5c8216a245ae09a3796c185f1724df17f2a5c3 (patch)
tree3c242d2fe11a3f50bfa0e9fc0bdf89f8016054f8
parent68b2d8a7e80b7b6a06c029589af01c6c437a4ab6 (diff)
downloadrabbitmq-codegen-rabbitmq_v2_8_x.tar.gz
Backport 294e17bead0e (bug25209 - Change to python 3.x support (via 2to3 utility))rabbitmq_v2_8_x
-rw-r--r--amqp_codegen.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/amqp_codegen.py b/amqp_codegen.py
index 5423350..ad57a9f 100644
--- a/amqp_codegen.py
+++ b/amqp_codegen.py
@@ -119,7 +119,7 @@ mergers = {
}
def merge_load_specs(filenames, ignore_conflicts):
- handles = [file(filename) for filename in filenames]
+ handles = [open(filename) for filename in filenames]
docs = [json.load(handle) for handle in handles]
spec = {}
for doc in docs: