Repository navigation
converted Bio.Entrez to python3 - #2461
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2461 +/- ##
==========================================
- Coverage 84.78% 84.78% -0.01%
==========================================
Files 322 322
Lines 52388 52387 -1
==========================================
- Hits 44419 44414 -5
- Misses 7969 7973 +4
Continue to review full report at Codecov.
|
| # Importing these functions with leading underscore as not intended for reuse | ||
| from Bio._py3k import urlopen as _urlopen | ||
| from Bio._py3k import urlparse as _urlparse | ||
| from urllib.request import urlopen, urlparse |
There was a problem hiding this comment.
It is minor, but this way adds urlopen and urlparse to the namespace of Bio.Entrez.Parser whereas the following based on the old imports makes it clear they are for our internal use only:
from urllib.request import urlopen as _urlopen
from urllib.request import urlparse as _urlparseThis would also mean less trivial changes in the rest of the file ;)
There was a problem hiding this comment.
Why add underscores fore these two imports and not to all the others?
|
Dropping the previously documented support for parsing handles opened in text mode worries me. How about a fall back conversion with a new deprecation warning to make the transition to binary more easier on our users? The |
It is asking for trouble. By the time you have a text handle, you won't know the encoding that was used to open the file. On top of that, the warning won't tell you what actually happened: results in without a traceback, i.e. without telling the user where exactly the file was opened in text mode. |
|
Not sure where the travis and appveyor errors are coming from. I haven't touched that file in the original PR or in the later commit. |
|
Commit 66cce9d is causing the checks to fail |
|
Breaking the master branch with the py3k unicode cleanup was my fault, sorry. We can rebase this to re-test... |
Merge branch 'master' of https://github.com/biopython/biopython into Entrez_python3
|
Thanks |
This pull request is a first attempt to convert Bio.Entrez to python3. Please have a look before committing; this is tricky stuff. If we're happy with this, we can update the documentation.
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.rstfile, have runflake8locally, andunderstand 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.rstandCONTRIB.rstas part of this pull request, am listedalready, or do not wish to be listed. (This acknowledgement is optional.)