summary refs log tree commit diff stats
path: root/setup.py
diff options
context:
space:
mode:
authorhut <hut@hut.pm>2017-07-16 06:28:25 +0200
committerhut <hut@hut.pm>2017-07-16 06:29:24 +0200
commitc33844e98dab1759960f27dad1dfa4b3c3fead25 (patch)
tree86fac92c31b3ad66bafb221ebc73b260d5b28db5 /setup.py
parentf3243faa22ffd78ef654cd7ae4357a908408ac19 (diff)
downloadranger-c33844e98dab1759960f27dad1dfa4b3c3fead25.tar.gz
ext.lazy_property: don't redefine resetter function
Without this change, binding a signal to a resetter function with a weak
reference would delete the signal after it's called, because the
function would be disconnected from the object and market for garbage
collection.

Also adapted the test cases to check for this problem.

For example, commit 22ffd78ef654cd7ae4357a908408ac19 binds vcs__reset()
to the signal "setopt.vcs_aware" with a weak ref.  Because of that, the
signal is only triggered the first time the setting is changed.
Diffstat (limited to 'setup.py')
0 files changed, 0 insertions, 0 deletions