On Tue, Jan 26, 2010 at 7:49 AM, Marius Gedminas <mar...@gedmin.as> wrote:
> Any ideas about
> fixing the deprecation warning caused by renormalizing.py?  All it does
> is
>  'import doctest'
> which, due to Python's unfortunate import semantics, is interpreted as
>  'from zope.testing import doctest'

> Ideas?

It's not real pretty, but you can do absolute imports in Python 2.4 like

import imp

name = 'doctest'
doctest = imp.load_module(name, *imp.find_module(name))

Manuel uses this technique to import doctest (Manuel also has a
submodule named "doctest").
Benji York
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