Ensure immutable iteration.

This commit is contained in:
Antoine Nguyen
2018-05-12 17:55:10 +02:00
parent 1ccd1f1027
commit 9b5b0f23c9
+1 -1
View File
@@ -22,7 +22,7 @@ class DisableSignals(object):
self.disconnect(signal)
def __exit__(self, exc_type, exc_val, exc_tb):
for signal in self.stashed_signals.keys():
for signal in list(self.stashed_signals.keys()):
self.reconnect(signal)
def disconnect(self, signal):