@@ -197,16 +197,17 @@ def __setstate__(self, state):
197
197
s : {proxy : cid for cid , proxy in d .items ()}
198
198
for s , d in self .callbacks .items ()}
199
199
200
- def connect (self , s , func ):
200
+ @_api .rename_parameter ("3.3.4" , "s" , "signal" )
201
+ def connect (self , signal , func ):
201
202
"""Register *func* to be called when signal *s* is generated."""
202
- self ._func_cid_map .setdefault (s , {})
203
+ self ._func_cid_map .setdefault (signal , {})
203
204
proxy = _weak_or_strong_ref (func , self ._remove_proxy )
204
- if proxy in self ._func_cid_map [s ]:
205
- return self ._func_cid_map [s ][proxy ]
205
+ if proxy in self ._func_cid_map [signal ]:
206
+ return self ._func_cid_map [signal ][proxy ]
206
207
cid = next (self ._cid_gen )
207
- self ._func_cid_map [s ][proxy ] = cid
208
- self .callbacks .setdefault (s , {})
209
- self .callbacks [s ][cid ] = proxy
208
+ self ._func_cid_map [signal ][proxy ] = cid
209
+ self .callbacks .setdefault (signal , {})
210
+ self .callbacks [signal ][cid ] = proxy<
469B
/span>
210
211
return cid
211
212
212
213
# Keep a reference to sys.is_finalizing, as sys may have been cleared out
0 commit comments