Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
67cf8be7
Commit
67cf8be7
authored
Feb 22, 2002
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not import FCNTL unless we actually have to, avoiding a warning from
Python 2.2.
parent
71b802eb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
ZServer/__init__.py
ZServer/__init__.py
+3
-2
lib/python/ZServer/__init__.py
lib/python/ZServer/__init__.py
+3
-2
No files found.
ZServer/__init__.py
View file @
67cf8be7
...
...
@@ -18,11 +18,12 @@ import sys, os
# 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.
if
os
.
name
==
'posix'
:
import
fcntl
,
FCNTL
import
fcntl
if
not
hasattr
(
fcntl
,
'F_GETFL'
):
import
FCNTL
fcntl
.
F_GETFL
=
FCNTL
.
F_GETFL
fcntl
.
F_SETFL
=
FCNTL
.
F_SETFL
from
medusa
import
asyncore
sys
.
modules
[
'asyncore'
]
=
asyncore
...
...
lib/python/ZServer/__init__.py
View file @
67cf8be7
...
...
@@ -18,11 +18,12 @@ import sys, os
# 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.
if
os
.
name
==
'posix'
:
import
fcntl
,
FCNTL
import
fcntl
if
not
hasattr
(
fcntl
,
'F_GETFL'
):
import
FCNTL
fcntl
.
F_GETFL
=
FCNTL
.
F_GETFL
fcntl
.
F_SETFL
=
FCNTL
.
F_SETFL
from
medusa
import
asyncore
sys
.
modules
[
'asyncore'
]
=
asyncore
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment