[Zodb-checkins] CVS: Packages/ZEO - fap.py:1.3
jeremy@digicool.com
jeremy@digicool.com
Wed, 4 Apr 2001 13:54:06 -0400 (EDT)
Update of /cvs-repository/Packages/ZEO
In directory korak:/tmp/cvs-serv9545
Modified Files:
fap.py
Log Message:
Make sure asyncore is defined one way or another
--- Updated File fap.py in package Packages/ZEO --
--- fap.py 2001/04/01 18:38:34 1.2
+++ fap.py 2001/04/04 17:54:04 1.3
@@ -109,6 +109,8 @@
# 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)
@@ -117,6 +119,9 @@
except:
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'