forked from OSGeo/grass
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
grass.pydispatch: Apply code changes from upstream pydispatcher repo (O…
…SGeo#4033) python(pydispatch): Apply code changes from upstream pydispatcher repo Manual combination of latest changes of repo https://github.com/mcfletch/pydispatcher
- Loading branch information
Showing
5 changed files
with
55 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,11 +27,7 @@ | |
""" | ||
|
||
import weakref | ||
from grass.pydispatch import saferef, robustapply, errors | ||
|
||
__author__ = "Patrick K. O'Brien <[email protected]>" | ||
__cvsid__ = "Id: dispatcher.py,v 1.1 2010/03/30 15:45:55 mcfletch Exp" | ||
__version__ = "Revision: 1.1" | ||
from grass.pydispatch import errors, saferef, robustapply | ||
|
||
|
||
class _Parameter: | ||
|
@@ -469,7 +465,7 @@ def _removeOldBackRefs(senderkey, signal, receiver, receivers): | |
found = 0 | ||
signals = connections.get(signal) | ||
if signals is not None: | ||
for sig, recs in connections.get(signal, {}).iteritems(): | ||
for sig, recs in connections.get(signal, {}).items(): | ||
if sig != signal: | ||
for rec in recs: | ||
if rec is oldReceiver: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters