Skip to content

removed _binary_to_string_handle - #2521

Merged
peterjc merged 1 commit into
biopython:masterfrom
mdehoon:python3_binary_to_string_handle
Jan 9, 2020
Merged

peterjc merged 1 commit into
biopython:masterfrom
mdehoon:python3_binary_to_string_handle

Conversation

@mdehoon

@mdehoon mdehoon commented Jan 9, 2020 •

Copy link
Copy Markdown
Contributor

This pull request removes _binary_to_string_handle from Bio._py3k and the modules that used it (Bio.KEGG, Bio.ExPASy, Bio.TogoWS). Some minor cleanup along the way.

  • 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 9, 2020 14:34
@mdehoon

mdehoon commented Jan 9, 2020

Copy link
Copy Markdown
Contributor Author

@peterjc I'll leave the honor of removing Bio._py3k to you.

Comment thread Bio/ExPASy/__init__.py Resolved
Comment thread Bio/Entrez/__init__.py
if subtype == "plain":
url = handle.url
handle = io.TextIOWrapper(handle, encoding="utf8")
handle = io.TextIOWrapper(handle, encoding="UTF-8")

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.

Is it worth a note here that the NCBI server says it uses UTF-8?

(Same applies to the other modules)

@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 - I take it the online tests are all running fine for you locally? I was having trouble with NCBI BLAST yesterday (waiting indefinitely) which hindered testing things.

Assuming the continuous integration tests pass, ready to merge? 👍

@peterjc

peterjc commented Jan 9, 2020

Copy link
Copy Markdown
Member

Cross reference #2420 - and sure, I can do the final removal of the near empty file, and close the issue if you like :)

@codecov

codecov Bot commented Jan 9, 2020

Copy link
Copy Markdown

Codecov Report

Merging #2521 into master will increase coverage by 0.13%.
The diff coverage is 15.38%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2521      +/-   ##
==========================================
+ Coverage   84.67%   84.81%   +0.13%     
==========================================
  Files         319      319              
  Lines       52231    52815     +584     
==========================================
+ Hits        44226    44793     +567     
- Misses       8005     8022      +17
Impacted Files Coverage Δ
Bio/_py3k/__init__.py 100% <ø> (+80%) ⬆️
Bio/Entrez/__init__.py 45.33% <0%> (ø) ⬆️
Bio/TogoWS/__init__.py 15.54% <11.11%> (-0.44%) ⬇️
Bio/ExPASy/__init__.py 40% <16.66%> (-13.85%) ⬇️
Bio/KEGG/REST.py 14.49% <25%> (-0.44%) ⬇️
Bio/Seq.py 98.3% <0%> (+0.1%) ⬆️
Bio/SeqRecord.py 94.08% <0%> (+0.45%) ⬆️
Bio/SeqIO/__init__.py 86.32% <0%> (+2.43%) ⬆️
Bio/SeqIO/Interfaces.py 85.08% <0%> (+5.63%) ⬆️

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 9ec1196...3a667f3. Read the comment docs.

@peterjc
peterjc merged commit ae46a41 into biopython:master Jan 9, 2020
@mdehoon
mdehoon deleted the python3_binary_to_string_handle branch January 9, 2020 21:15
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