MCPcopy Create free account
hub / github.com/baidu/bigflow / _safe_unicode

Function _safe_unicode

bigflow_python/python/bigflow/util/log.py:51–75  ·  view source on GitHub ↗

Converts any given object to unicode string. >>> safeunicode('hello') u'hello' >>> safeunicode(2) u'2' >>> safeunicode('\xe1\x88\xb4') u'\u1234'

(obj, encoding='utf-8')

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

formatMethod · 0.85

Calls 1

decodeMethod · 0.45

Tested by

no test coverage detected