Skip to content

Seqxml windows bug - #2525

Merged
peterjc merged 4 commits into
biopython:masterfrom
mdehoon:seqxml_windows_bug
Jan 10, 2020
Merged

peterjc merged 4 commits into
biopython:masterfrom
mdehoon:seqxml_windows_bug

Conversation

@mdehoon

@mdehoon mdehoon commented Jan 10, 2020

Copy link
Copy Markdown
Contributor

This pull request fixes Bio.SeqIO.SeqXmlIO by opening SeqXML files in binary mode to avoid encoding issues. This allows the bug previously observed on Windows to be fixed. Before applying this PR, the bug can be triggered on any platform by setting

LC_ALL=en_US.ISO8859-15    

(or anything else that is not UTF-8) in your terminal.

  • I hereby agree to dual licence this and any previous contributions under both
    the Biopython License Agreement AND the BSD 3-Clause License.

  • I have read the CONTRIBUTING.rst file, have run flake8 locally, and
    understand that AppVeyor and TravisCI will be used to confirm the Biopython unit
    tests and style checks pass with these changes.

  • I have added my name to the alphabetical contributors listings in the files
    NEWS.rst and CONTRIB.rst as part of this pull request, am listed
    already, or do not wish to be listed. (This acknowledgement is optional.)

@mdehoon
mdehoon requested a review from peterjc as a code owner January 10, 2020 02:37
@codecov

codecov Bot commented Jan 10, 2020 •

Copy link
Copy Markdown

Codecov Report

Merging #2525 into master will decrease coverage by <.01%.
The diff coverage is 66.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2525      +/-   ##
==========================================
- Coverage   84.77%   84.77%   -0.01%     
==========================================
  Files         320      320              
  Lines       52372    52374       +2     
==========================================
+ Hits        44398    44399       +1     
- Misses       7974     7975       +1
Impacted Files Coverage Δ
Bio/SeqIO/__init__.py 83.88% <ø> (ø) ⬆️
Bio/SeqIO/SeqXmlIO.py 83.33% <66.66%> (-0.16%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bf75689...17c1a81. Read the comment docs.

@peterjc peterjc left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good - same idea as your recent changes in the Entrez XML parser to require binary mode.

@peterjc
peterjc merged commit 4d15a8b into biopython:master Jan 10, 2020
@mdehoon
mdehoon deleted the seqxml_windows_bug branch January 11, 2020 03:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants