MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / tob

Function tob

thirdparty/bottle/bottle.py:138–141  ·  view source on GitHub ↗
(s, enc='utf8')

Source from the content-addressed store, hash-verified

136
137# Some helpers for string/byte handling
138def tob(s, enc='utf8'):
139 if isinstance(s, unicode):
140 return s.encode(enc)
141 return b'' if s is None else bytes(s)
142
143
144def touni(s, enc='utf8', err='strict'):

Callers 14

default_error_handlerMethod · 0.85
wsgiMethod · 0.85
bottle.pyFile · 0.85
MPHeadersEaeterClass · 0.85
readMethod · 0.85
get_cookieMethod · 0.85
_iter_chunkedMethod · 0.85
_bodyMethod · 0.85
set_cookieMethod · 0.85
static_fileFunction · 0.85
parse_authFunction · 0.85
cookie_encodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected