Function
close_all
(map=None, ignore_all=False)
Source from the content-addressed store, hash-verified
| 859 | return (file, function, line), t, v, info |
| 860 | |
| 861 | def close_all(map=None, ignore_all=False): |
| 862 | if map is None: |
| 863 | map = socket_map |
| 864 | for x in list(map.values()): |
| 865 | try: |
| 866 | x.close() |
| 867 | except OSError as e: |
| 868 | if e.args[0] == EBADF: |
| 869 | pass |
| 870 | elif not ignore_all: |
| 871 | raise |
| 872 | except _reraised_exceptions: |
| 873 | raise |
| 874 | except: |
| 875 | if not ignore_all: |
| 876 | raise |
| 877 | map.clear() |
| 878 | |
| 879 | # Asynchronous File I/O: |
| 880 | # |
Callers
nothing calls this directly
Tested by
no test coverage detected