o ad@s ddlZddZefddZdS)Ncsfdd}t|S)a6 Decorate func so it's only ever called the first time. This decorator can ensure that an expensive or non-idempotent function will not be expensive on subsequent calls and is idempotent. >>> func = once(lambda a: a+3) >>> func(3) 6 >>> func(9) 6 >>> func('12') 6 cs tds |i|_jS)Nalways_returns)hasattrr)argskwargsfunc7/usr/lib/python3/dist-packages/keyring/util/__init__.pywrappers zonce..wrapper) functoolswraps)rr rrr onces r c cs.|D]}z|VWq|yYqwdS)zk yield the results of calling each element of callables, suppressing any indicated exceptions. Nr) callables exceptionscallablerrr suppress_exceptionss  r)r r Exceptionrrrrr s