diff options
author | Simon MacMullen <simon@rabbitmq.com> | 2012-10-04 15:23:24 +0100 |
---|---|---|
committer | Simon MacMullen <simon@rabbitmq.com> | 2012-10-04 15:23:24 +0100 |
commit | dd673ebcbe884fa2b8fe77ee6dfde6a4541f382f (patch) | |
tree | 3c242d2fe11a3f50bfa0e9fc0bdf89f8016054f8 | |
parent | 7dd235cd818316c0f554c0891032b6bbbe41dfc3 (diff) | |
download | rabbitmq-codegen-bug25209.tar.gz |
"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.bug25209
-rw-r--r-- | amqp_codegen.py | 2 |
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: |