MCPcopy Create free account
hub / github.com/cloudpipe/cloudpickle / _maybe_remove

Function _maybe_remove

tests/cloudpickle_test.py:82–87  ·  view source on GitHub ↗
(list_, item)

Source from the content-addressed store, hash-verified

80
81
82def _maybe_remove(list_, item):
83 try:
84 list_.remove(item)
85 except ValueError:
86 pass
87 return list_
88
89
90def test_extract_class_dict():

Calls

no outgoing calls

Tested by

no test coverage detected