[Zope-Checkins] CVS: Zope/ZServer/medusa - asyncore.py:1.16.12.2

Fred L. Drake, Jr. fdrake@acm.org
Thu, 20 Jun 2002 10:03:05 -0400


Brian Lloyd writes:
 > +    # HACK by ZC: this hack also appears in ZServer.__init__, but it
 > +    # doesn't get installed if someone uses medusa directly (as they
 > +    # would when running the monitor client. This ensures that the
 > +    # compatibility hack is installed. Hopefully this (and any other)
 > +    # hacks can go away when we move to Python 2.2.
 > +    if not hasattr(fcntl, 'F_GETFL'):
 > +        import FCNTL
 > +        fcntl.F_GETFL = FCNTL.F_GETFL
 > +        fcntl.F_SETFL = FCNTL.F_SETFL

So *why* isn't the ZServer.__init__ version getting run when using
ZServer.medusa?  That sounds like a bug.  Does the ZServer/ directory
get put on sys.path directly in some case?


  -Fred

-- 
Fred L. Drake, Jr.  <fdrake at acm.org>
PythonLabs at Zope Corporation