[Zope-Checkins] CVS: Zope/ZServer - __init__.py:1.19.2.2
Brian Lloyd
brian@digicool.com
Fri, 21 Dec 2001 16:12:00 -0500
Update of /cvs-repository/Zope/ZServer
In directory cvs.zope.org:/tmp/cvs-serv19810
Modified Files:
Tag: Zope-2_5-branch
__init__.py
Log Message:
Fixed platform-specific bug in asyncore hack.
=== Zope/ZServer/__init__.py 1.19.2.1 => 1.19.2.2 ===
# to make this work, as a 2.2-ism crept into the asyncore code.
import fcntl, FCNTL
-if not hasattr(fcntl, 'F_GETFL'):
+if os.name == 'posix' and not hasattr(fcntl, 'F_GETFL'):
fcntl.F_GETFL = FCNTL.F_GETFL
fcntl.F_SETFL = FCNTL.F_SETFL