-
Notifications
You must be signed in to change notification settings - Fork 2
/
patch_pydispatch.diff
26 lines (26 loc) · 1.03 KB
/
patch_pydispatch.diff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Index: lib/python/pydispatch/dispatcher.py
===================================================================
--- lib/python/pydispatch/dispatcher.py (revision 73073)
+++ lib/python/pydispatch/dispatcher.py (working copy)
@@ -388,7 +388,7 @@
else:
for senderkey in backSet:
try:
- signals = connections[senderkey].keys()
+ signals = list(connections[senderkey])
except KeyError:
pass
else:
Index: lib/python/pydispatch/robustapply.py
===================================================================
--- lib/python/pydispatch/robustapply.py (revision 73073)
+++ lib/python/pydispatch/robustapply.py (working copy)
@@ -54,7 +54,7 @@
if not (codeObject.co_flags & 8):
# fc does not have a **kwds type parameter, therefore
# remove unacceptable arguments.
- for arg in named.keys():
+ for arg in list(named):
if arg not in acceptable:
del named[arg]
return receiver(*arguments, **named)