MCPcopy Index your code
hub / github.com/Bitmessage/PyBitmessage / close_all

Function close_all

src/network/asyncore_pollchoose.py:861–877  ·  view source on GitHub ↗
(map=None, ignore_all=False)

Source from the content-addressed store, hash-verified

859 return (file, function, line), t, v, info
860
861def 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

Calls 2

clearMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected