MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _safe_print

Function _safe_print

tools/python-3.11.9-amd64/Lib/tarfile.py:264–268  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

262 return
263
264def _safe_print(s):
265 encoding = getattr(sys.stdout, 'encoding', None)
266 if encoding is not None:
267 s = s.encode(encoding, 'backslashreplace').decode(encoding)
268 print(s, end=' ')
269
270
271class TarError(Exception):

Callers 1

listMethod · 0.85

Calls 3

printFunction · 0.50
decodeMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected