Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/saltstack/salt
/ __maybe_string
Function
__maybe_string
salt/utils/gitfs.py:151–154 ·
view source on GitHub ↗
(ptr)
Source
from the content-addressed store, hash-verified
149
else
:
150
151
def
__maybe_string(ptr):
152
if
not ptr:
153
return
None
154
return
pygit2.ffi.string(ptr).decode(
"utf-8"
)
155
156
pygit2.remote.maybe_string = __maybe_string
157
Callers
nothing calls this directly
Calls
1
string
Method · 0.80
Tested by
no test coverage detected