From dd673ebcbe884fa2b8fe77ee6dfde6a4541f382f Mon Sep 17 00:00:00 2001 From: Simon MacMullen Date: Thu, 4 Oct 2012 15:23:24 +0100 Subject: "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. --- 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