We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d60489 commit c0c6418Copy full SHA for c0c6418
1 file changed
src/diffpy/srfit/util/observable.py
@@ -52,7 +52,7 @@ def notify(self, other=()):
52
53
def addObserver(self, callable):
54
"""Add callable to the set of observers."""
55
- f = weak_ref(callable, fallback=_fbRemoveObserver)
+ f = weak_ref(callable, fallback=_fb_remove_observer)
56
self._observers.add(f)
57
return
58
@@ -81,7 +81,7 @@ def __init__(self, **kwds):
81
# Local helpers --------------------------------------------------------------
82
83
84
-def _fbRemoveObserver(fobs, semaphores):
+def _fb_remove_observer(fobs, semaphores):
85
# Remove WeakBoundMethod `fobs` from the observers of notifying object.
86
# This is called from Observable.notify when the WeakBoundMethod
87
# associated object dies.
0 commit comments