Skip to content

Commit c0c6418

Browse files
committed
_fb_remove_observer
1 parent 6d60489 commit c0c6418

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/diffpy/srfit/util/observable.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def notify(self, other=()):
5252

5353
def addObserver(self, callable):
5454
"""Add callable to the set of observers."""
55-
f = weak_ref(callable, fallback=_fbRemoveObserver)
55+
f = weak_ref(callable, fallback=_fb_remove_observer)
5656
self._observers.add(f)
5757
return
5858

@@ -81,7 +81,7 @@ def __init__(self, **kwds):
8181
# Local helpers --------------------------------------------------------------
8282

8383

84-
def _fbRemoveObserver(fobs, semaphores):
84+
def _fb_remove_observer(fobs, semaphores):
8585
# Remove WeakBoundMethod `fobs` from the observers of notifying object.
8686
# This is called from Observable.notify when the WeakBoundMethod
8787
# associated object dies.

0 commit comments

Comments
 (0)