Dolda2000 GitWeb
/
pdm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86b3a0a
)
Handle subscribed callbacks unregistering themselves.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Sun, 2 Nov 2014 02:10:10 +0000
(
03:10
+0100)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Sun, 2 Nov 2014 02:10:10 +0000
(
03:10
+0100)
pdm/perf.py
patch
|
blob
|
blame
|
history
diff --git
a/pdm/perf.py
b/pdm/perf.py
index
fd4daa6
..
7aef95a
100644
(file)
--- a/
pdm/perf.py
+++ b/
pdm/perf.py
@@
-129,7
+129,7
@@
class eventobj(perfobj):
def notify(self, event):
"""Notify all subscribers with the given event object."""
- for cb in
self.subscribers
:
+ for cb in
list(self.subscribers)
:
try:
cb(event)
except: pass