[Zope-Checkins] CVS: Zope/ZServer/PubCore - ZEvent.py:1.9
Chris McDonough
chrism@zope.com
Tue, 11 Jun 2002 18:22:07 -0400
Update of /cvs-repository/Zope/ZServer/PubCore
In directory cvs.zope.org:/tmp/cvs-serv29087
Modified Files:
ZEvent.py
Log Message:
Moved global declaration out of the except portion of a try-except
in order to comply with nested scopes rules.
=== Zope/ZServer/PubCore/ZEvent.py 1.8 => 1.9 ===
def Wakeup(thunk=None):
+ global the_trigger
try:
the_trigger.pull_trigger(thunk)
except OSError, why:
@@ -32,7 +33,6 @@
# trigger and install a new one.
if why[0] == 32:
del socket_map[the_trigger._fileno]
- global the_trigger
the_trigger = simple_trigger() # adds itself back into socket_map
the_trigger.pull_trigger(thunk)