Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/simplejson/simplejson
/ b
Function
b
simplejson/compat.py:7–8 ·
view source on GitHub ↗
(s)
Source
from the content-addressed store, hash-verified
5
if
sys.version_info[0] < 3:
6
PY3 = False
7
def
b(s):
8
return
s
9
try
:
10
from
cStringIO
import
StringIO
11
except
ImportError:
Callers
13
test_issue3623
Method · 0.90
__bytes__
Method · 0.90
test_bytes_decode
Method · 0.90
__bytes__
Method · 0.90
test_stringify_key
Method · 0.90
test_misbehaving_bytes_subtype
Method · 0.90
test_bytes_toplevel
Method · 0.90
test_bytes_nested
Method · 0.90
test_bytes_key
Method · 0.90
test_bad_encoding
Method · 0.90
test_encode_basestring_ascii.py
File · 0.90
test_ensure_ascii_false_bytestring_encoding
Method · 0.90
Calls
no outgoing calls
Tested by
12
test_issue3623
Method · 0.72
__bytes__
Method · 0.72
test_bytes_decode
Method · 0.72
__bytes__
Method · 0.72
test_stringify_key
Method · 0.72
test_misbehaving_bytes_subtype
Method · 0.72
test_bytes_toplevel
Method · 0.72
test_bytes_nested
Method · 0.72
test_bytes_key
Method · 0.72
test_bad_encoding
Method · 0.72
test_ensure_ascii_false_bytestring_encoding
Method · 0.72
test_strip_bom
Method · 0.72