diff options
author | Zuul <zuul@review.openstack.org> | 2018-07-18 03:00:12 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2018-07-18 03:00:12 +0000 |
commit | b4c20085844833d9fc2e95e80db8feb7c912d854 (patch) | |
tree | 9fabf0ff51b551ba6b9e6fb078d929e210f59021 | |
parent | 0dd185cdae807470fc8c644de355499a5c44a427 (diff) | |
parent | bce298fb608032b08dad4d6c1f51d946c1777040 (diff) | |
download | python-barbicanclient-b4c20085844833d9fc2e95e80db8feb7c912d854.tar.gz |
Merge "use open() instead of file()"
-rw-r--r-- | barbicanclient/barbican_cli/v1/orders.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/barbicanclient/barbican_cli/v1/orders.py b/barbicanclient/barbican_cli/v1/orders.py index 713f907..385d265 100644 --- a/barbicanclient/barbican_cli/v1/orders.py +++ b/barbicanclient/barbican_cli/v1/orders.py @@ -67,7 +67,7 @@ class CreateOrder(show.ShowOne): request_data = None if args.request_file: try: - request_data = file(args.request_file).read() + request_data = open(args.request_file, 'r').read() except IOError: raise ValueError( 'Couldn\'t read request file %s.' % args.request_file) |