[Twisted-Python] Re: [Twisted-commits] r14809 - Don't import fdesc until needed since it doesn't exist on Windows.
Jp Calderone
exarkun at divmod.com
Mon Oct 10 21:18:18 MDT 2005
On Mon, 10 Oct 2005 17:44:45 -0600, James Knight <foom at wolfwood.twistedmatrix.com> wrote:
>Author: foom
>Date: Mon Oct 10 17:44:45 2005
>New Revision: 14809
>
>Modified:
> trunk/twisted/web2/channel/cgi.py
>Log:
>Don't import fdesc until needed since it doesn't exist on Windows.
>
>
>Modified: trunk/twisted/web2/channel/cgi.py
>==============================================================================
>--- trunk/twisted/web2/channel/cgi.py (original)
>+++ trunk/twisted/web2/channel/cgi.py Mon Oct 10 17:44:45 2005
>@@ -6,7 +6,7 @@
> import urllib
>
> # Move this to twisted core soonish
>-from twisted.internet import process, error, interfaces, fdesc
>+from twisted.internet import process, error, interfaces
> from twisted.python import log, failure
> from zope.interface import implements
>
>@@ -17,6 +17,8 @@
> disconnected = False
>
> def __init__(self, proto, stdin=0, stdout=1):
>+ import fdesc
>+
> self.protocol = proto
>
> fdesc.setNonBlocking(stdin)
No relative imports, please.
>
>_______________________________________________
>Twisted-commits mailing list
>Twisted-commits at twistedmatrix.com
>http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-commits
>
More information about the Twisted-Python
mailing list