Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenBMB/BMTools
/ clean_str
Function
clean_str
bmtools/tools/wikipedia/api.py:7–8 ·
view source on GitHub ↗
(p)
Source
from the content-addressed store, hash-verified
5
from
uuid
import
UUID
6
7
def
clean_str(p):
8
return
p.encode().decode(
"unicode-escape"
).encode(
"latin1"
).decode(
"utf-8"
)
9
10
class
WikiPage:
11
def
__init__(self):
Callers
1
search
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected