From 0a5c8216a245ae09a3796c185f1724df17f2a5c3 Mon Sep 17 00:00:00 2001 From: Simon MacMullen Date: Thu, 4 Oct 2012 15:25:59 +0100 Subject: Backport 294e17bead0e (bug25209 - Change to python 3.x support (via 2to3 utility)) --- amqp_codegen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v1.2.1