Skip to content

Default to 'latin-1' encoding for HTTP text requests. - #1547

Merged
peterjc merged 2 commits into
biopython:masterfrom
PraxisSpace:master
Apr 2, 2018
Merged

peterjc merged 2 commits into
biopython:masterfrom
PraxisSpace:master

Conversation

@PraxisSpace

Copy link
Copy Markdown

This is following the W3C protocol documentation here:

https://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.7.1

This pull request addresses issue #1546 ...

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 and understand that AppVeyor and
TravisCI will be used to confirm the Biopython unit tests and flake8 style
checks pass with these changes.

I am happy be thanked by name in the NEWS.rst and CONTRIB.rst files,
and have added myself to those files as part of this pull request. (This
acknowledgement is optional. Note we list the names sorted alphabetically.
)

@peterjc

peterjc commented Mar 5, 2018

Copy link
Copy Markdown
Member

This seems sensible for the network handles - although if we want to restrict this to network handles only this may not be the best place to do the encoding selection? Note someone might well be parsing an NCBI file previously saved to disk, so this is not clear cut.

@mdehoon what do you think?

@EdwardBlakeMiller I'd like a comment on this if statement linking to the W3C recommendation explaining why latin-1 aka ISO-8859-1 is used.

@codecov

codecov Bot commented Mar 5, 2018 •

Copy link
Copy Markdown

Codecov Report

Merging #1547 into master will decrease coverage by 0.01%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1547      +/-   ##
==========================================
- Coverage   84.86%   84.85%   -0.02%     
==========================================
  Files         325      325              
  Lines       49391    49393       +2     
==========================================
- Hits        41914    41910       -4     
- Misses       7477     7483       +6
Impacted Files Coverage Δ
Bio/_py3k/__init__.py 76.19% <0%> (-1.86%) ⬇️
Bio/GA/Evolver.py 54.54% <0%> (-18.19%) ⬇️

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 27e3457...bfd53fa. Read the comment docs.

@peterjc
peterjc merged commit 964c3ab into biopython:master Apr 2, 2018
@peterjc

peterjc commented Apr 2, 2018

Copy link
Copy Markdown
Member

Thanks!

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