On Thu, Dec 24, 2009 at 14:50, Fabio Tranchitella <kob...@kobold.it> wrote:
> I don't think we can avoid the error, and to be honest I consider the code
> in zope.minmax to be wrong.
> """
> import zope.testing
> x = zope.testing.doctest.DocTestFile(...
> """
> The import is wrong

No, that's perferctly correct code and not wrong in any way.

What if we hide the warning during the __init__.py import. Will it
show up the next time, then?


Maybe we can add deprecations only for the major names in doctest.py?
That would still raise an error everytime you use it, but only when
you import a name, not the module.

Lennart Regebro: http://regebro.wordpress.com/
Python 3 Porting: http://python-incompatibility.googlecode.com/
+33 661 58 14 64
Zope-Dev maillist  -  Zope-Dev@zope.org
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope )

Reply via email to