-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove support for gzipped files in load_json_file
Compression related functions were removed from securesystemslib as it was deemed more appropriate for callers to handle compression/decompression at a different level. However, the automatic decompression functionality in load_json_file() had remained. Remove that change and tidy up load_json_file() to only close the fileobject once. Since Python 2.5 a finally block is always called, regardless of whether there is an exception or not. Therefore there's no need to close the fileobject in the else block and the finally block. Signed-off-by: Joshua Lock <jlock@vmware.com>
- Loading branch information
Showing
2 changed files
with
1 addition
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters