Move entrez.py from popen2.popen2 to subprocess.Popen.
authorW. Trevor King <wking@drexel.edu>
Sat, 16 Apr 2011 01:15:47 +0000 (21:15 -0400)
committerW. Trevor King <wking@drexel.edu>
Sat, 16 Apr 2011 01:15:47 +0000 (21:15 -0400)
commitd4ed3fce418da02cf1fb27f7c764a63496e1b0da
treedf990fe01dde48ed406776348def609444295aec
parentf5ffe22e8dab0ecaed929c773cefc269652b7180
Move entrez.py from popen2.popen2 to subprocess.Popen.

popen2 is depreceated for Python >= 2.6.

The Pipe object is borrowed from Bugs Everywhere.

Also added:
* logging (instead of the old debug printouts)
* doctests for medline_xml_to_bibtex().
* don't fetch medline or process to bibtex if a search is empty.
posts/entrez/entrez.py