MCPcopy Index your code
hub / github.com/python/cpython / codecs_open_no_warn

Function codecs_open_no_warn

Lib/test/test_codecs.py:28–32  ·  view source on GitHub ↗

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

(*args, **kwargs)

Source from the content-addressed store, hash-verified

26
27
28def codecs_open_no_warn(*args, **kwargs):
29 """Call codecs.open(*args, **kwargs) ignoring DeprecationWarning."""
30 with warnings.catch_warnings():
31 warnings.simplefilter("ignore")
32 return codecs.open(*args, **kwargs)
33
34def coding_checker(self, coder):
35 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…