[Twisted-Python] Re: [Twisted-commits] r15355 - Add twisted.python.pymodules.datetime and use it if "import datetime" fails.

Itamar Shtull-Trauring itamar at itamarst.org
Wed Dec 21 10:41:31 EST 2005

On Tue, 2005-12-20 at 18:26 -0700, Wilfredo Sanchez wrote:

> +try:
> +    import datetime
> +except ImportError:
> +    import twisted.python.pymodules.datetime as datetime

twisted.python.compat is an even better place, so other modules can
benefit (check out how other compat stuff is handled).

More information about the Twisted-Python mailing list