Commit b0519f09 authored by Brian Lloyd's avatar Brian Lloyd

Merged fcntl platform bug from 2.5 branch.

parent 72c30977
......@@ -17,10 +17,11 @@ import sys, os
# currently using the Python 2.2 asyncore bundled with Zope to override
# brokenness in the Python 2.1 version. We need to do some funny business
# to make this work, as a 2.2-ism crept into the asyncore code.
import fcntl, FCNTL
if not hasattr(fcntl, 'F_GETFL'):
fcntl.F_GETFL = FCNTL.F_GETFL
fcntl.F_SETFL = FCNTL.F_SETFL
if os.name == 'posix':
import fcntl, FCNTL
if not hasattr(fcntl, 'F_GETFL'):
fcntl.F_GETFL = FCNTL.F_GETFL
fcntl.F_SETFL = FCNTL.F_SETFL
from medusa import asyncore
sys.modules['asyncore'] = asyncore
......
......@@ -17,10 +17,11 @@ import sys, os
# currently using the Python 2.2 asyncore bundled with Zope to override
# brokenness in the Python 2.1 version. We need to do some funny business
# to make this work, as a 2.2-ism crept into the asyncore code.
import fcntl, FCNTL
if not hasattr(fcntl, 'F_GETFL'):
fcntl.F_GETFL = FCNTL.F_GETFL
fcntl.F_SETFL = FCNTL.F_SETFL
if os.name == 'posix':
import fcntl, FCNTL
if not hasattr(fcntl, 'F_GETFL'):
fcntl.F_GETFL = FCNTL.F_GETFL
fcntl.F_SETFL = FCNTL.F_SETFL
from medusa import asyncore
sys.modules['asyncore'] = asyncore
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment