Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update
get_fileobj()
to use utf-8 encoding in text mode
Also, merge its 3 parameters `gzip_only`, `bz2_only`, `zip_only` into `compressed_formats` (a list of allowed formats). As a consequence of the changes in `get_fileobj()`, update: - `files_diff()` - `get_file_peek()`, which now determines that a file is binary when a `UnicodeDecodeError` exception is raised and doesn't need `is_multi_byte` any more - `iter_headers()` and `get_headers()`, which now return Unicode and don't need `is_multi_byte` parameter any more As a consequence of the changes in `get_file_peek()`, update: - `set_peek()`, which now doesn't need `is_multi_byte` any more As a consequence of the changes in `get_headers()`, update: - `guess_ext` and `is_column_based()`, which now determine that a file is binary when a `UnicodeDecodeError` exception is raised and don't need `is_multi_byte` any more As a consequence of the changes to `guess_ext`, update: - `handle_uploaded_dataset_file() doesn't need `is_multi_byte` any more Also, remove duplicated calls to `get_file_peek()` in lib/galaxy/datatypes/molecules.py and lib/galaxy/datatypes/msa.py The `is_multi_byte` was not removed from the signature of `get_file_peek()` and `set_peek()` in order to preserve compatibility for ToolShed datatypes, thanks @jmchilton for the review.
- Loading branch information
Showing
23 changed files
with
186 additions
and
211 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
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
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
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
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
Oops, something went wrong.