biopython/biopython — pull request #134 by bow (2012-12-18 02:38:16+00:00)
Title: Patch for Entrez parsing

This patch addresses the Entrez parsing problem in Python 3: http://lists.open-bio.org/pipermail/biopython/2012-December/008294.html

* The `_binary_to_string_handle` in `Bio._py3k` has been refactored and a new `_string_to_binary_handle` function has been created.

* Since our Entrez parser only accepts binary data (whose distinction with strings matters in Python 3), I've decided to add the str -> binary conversion in the `read` and `parse` functions in `Bio.Entrez.Parser`.

* Finally, I've also added two simple tests to check whether URL parsing works as expected in a new `test_Entrez_online.py` test.