MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / inner

Method inner

pager_lib/tqdm/utils.py:194–210  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

192 tqdm_instance = proxy(tqdm_instance)
193
194 def inner(*args, **kwargs):
195 try:
196 return func(*args, **kwargs)
197 except OSError as e:
198 if e.errno != 5:
199 raise
200 try:
201 tqdm_instance.miniters = float('inf')
202 except ReferenceError:
203 pass
204 except ValueError as e:
205 if 'closed' not in str(e):
206 raise
207 try:
208 tqdm_instance.miniters = float('inf')
209 except ReferenceError:
210 pass
211 return inner
212
213 def __init__(self, wrapped, tqdm_instance): # noqa: B042

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected