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
a67a160b
Commit
a67a160b
authored
Jun 11, 2002
by
Chris McDonough
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved global declaration out of the except portion of a try-except
in order to comply with nested scopes rules.
parent
bbcadfb4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
ZServer/PubCore/ZEvent.py
ZServer/PubCore/ZEvent.py
+1
-1
lib/python/ZServer/PubCore/ZEvent.py
lib/python/ZServer/PubCore/ZEvent.py
+1
-1
No files found.
ZServer/PubCore/ZEvent.py
View file @
a67a160b
...
...
@@ -24,6 +24,7 @@ class simple_trigger(trigger):
the_trigger
=
simple_trigger
()
def
Wakeup
(
thunk
=
None
):
global
the_trigger
try
:
the_trigger
.
pull_trigger
(
thunk
)
except
OSError
,
why
:
...
...
@@ -32,7 +33,6 @@ def Wakeup(thunk=None):
# 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
)
lib/python/ZServer/PubCore/ZEvent.py
View file @
a67a160b
...
...
@@ -24,6 +24,7 @@ class simple_trigger(trigger):
the_trigger
=
simple_trigger
()
def
Wakeup
(
thunk
=
None
):
global
the_trigger
try
:
the_trigger
.
pull_trigger
(
thunk
)
except
OSError
,
why
:
...
...
@@ -32,7 +33,6 @@ def Wakeup(thunk=None):
# 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
)
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