Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZODB
Commits
c5d0d267
Commit
c5d0d267
authored
Apr 04, 2001
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure asyncore is defined one way or another
parent
a626dacc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
trunk/src/ZEO/fap.py
trunk/src/ZEO/fap.py
+5
-0
No files found.
trunk/src/ZEO/fap.py
View file @
c5d0d267
...
...
@@ -109,6 +109,8 @@ def fap(where=''):
# Try a little harder to import ZServer
import
os
,
imp
asyncore
=
None
for
location
in
where
,
'.'
,
os
.
path
.
join
(
'..'
,
'..'
):
if
whiff
(
location
):
sys
.
path
.
append
(
location
)
...
...
@@ -118,6 +120,9 @@ def fap(where=''):
import
asyncore
break
if
asyncore
is
None
:
import
asyncore
if
sys
.
version
[:
1
]
<
'2'
and
asyncore
.
loop
.
func_code
.
co_argcount
<
3
:
raise
ImportError
,
'Cannot import an up-to-date 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