Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
264
def
_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
271
class
TarError(Exception):
Callers
1
list
Method · 0.85
Calls
3
print
Function · 0.50
decode
Method · 0.45
encode
Method · 0.45
Tested by
no test coverage detected