Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RT-Thread/env-windows
/ bz2_encode
Function
bz2_encode
tools/python-3.11.9-amd64/Lib/encodings/bz2_codec.py:15–17 ·
view source on GitHub ↗
(input, errors='strict')
Source
from the content-addressed store, hash-verified
13
### Codec APIs
14
15
def
bz2_encode(input, errors=
'strict'
):
16
assert errors ==
'strict'
17
return
(bz2.compress(input), len(input))
18
19
def
bz2_decode(input, errors=
'strict'
):
20
assert errors ==
'strict'
Callers
1
encode
Method · 0.85
Calls
1
compress
Method · 0.80
Tested by
no test coverage detected