MCPcopy Index your code
hub / github.com/RustPython/RustPython / codecs_open_no_warn

Function codecs_open_no_warn

Lib/test/test_codecs.py:27–31  ·  view source on GitHub ↗

Call codecs.open(*args, **kwargs) ignoring DeprecationWarning.

(*args, **kwargs)

Source from the content-addressed store, hash-verified

25
26
27def codecs_open_no_warn(*args, **kwargs):
28 """Call codecs.open(*args, **kwargs) ignoring DeprecationWarning."""
29 with warnings.catch_warnings():
30 warnings.simplefilter("ignore")
31 return codecs.open(*args, **kwargs)
32
33def coding_checker(self, coder):
34 def check(input, expect):

Callers 4

test_bug691291Method · 0.85
test_invalid_modesMethod · 0.85
test_seek0Method · 0.85

Calls 1

openMethod · 0.45

Tested by

no test coverage detected