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

Peter biopython at maubp.freeserve.co.uk
Mon Nov 8 16:38:08 UTC 2010


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




More information about the Biopython-dev mailing list