Function
close_all
(map=None, ignore_all=False)
Source from the content-addressed store, hash-verified
| 556 | return (file, function, line), t, v, info |
| 557 | |
| 558 | def close_all(map=None, ignore_all=False): |
| 559 | if map is None: |
| 560 | map = socket_map |
| 561 | for x in list(map.values()): |
| 562 | try: |
| 563 | x.close() |
| 564 | except OSError as x: |
| 565 | if x.errno == EBADF: |
| 566 | pass |
| 567 | elif not ignore_all: |
| 568 | raise |
| 569 | except _reraised_exceptions: |
| 570 | raise |
| 571 | except: |
| 572 | if not ignore_all: |
| 573 | raise |
| 574 | map.clear() |
| 575 | |
| 576 | # Asynchronous File I/O: |
| 577 | # |
Callers
nothing calls this directly
Tested by
no test coverage detected