[Biopython-dev] Bio/Entrez/__init__.py

Michiel de Hoon mjldehoon at yahoo.com
Tue Nov 9 01:22:39 UTC 2010


I've added this line:

    ...    print record

which should solve the 2to3 error.

--Michiel.

--- On Mon, 11/8/10, Peter <biopython at maubp.freeserve.co.uk> wrote:

> From: Peter <biopython at maubp.freeserve.co.uk>
> Subject: Re: [Biopython-dev] Bio/Entrez/__init__.py
> To: "Tiago Antão" <tiagoantao at gmail.com>
> Cc: "BioPython-Dev Mailing List" <biopython-dev at biopython.org>
> Date: Monday, November 8, 2010, 11:38 AM
> 2010/11/8 Tiago Antão <tiagoantao at gmail.com>:
> > Hi,
> >
> > There is a doctest line that is making 2to3 go bonkers
> on Bio.Entrez
> > (__init__.py)
> > Line 55
> >             >>> for record in records:
> >             ...     # each record is a Python
> dictionary or list.
> >
> > Simplying adding a
> > ...       pass
> >
> > Is enough (the code should not work as it is an empty
> for, so 2to3 is
> > actually correct)
> 
> Ah - that isn't actually being used as a doctest (we don't
> call it
> in run_tests.py) and it wouldn't work if we tried because
> half
> the function arguments are omitted or left as dots.
> 
> I like your solution of adding the pass line.
> 
> Peter
> 
> _______________________________________________
> Biopython-dev mailing list
> Biopython-dev at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/biopython-dev
> 


      




More information about the Biopython-dev mailing list