Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/rthalley/dnspython
/ maybe_listify
Method
maybe_listify
tests/nanonameserver.py:256–260 ·
view source on GitHub ↗
(self, thing)
Source
from the content-addressed store, hash-verified
254
return
r
255
256
def
maybe_listify(self, thing):
257
if
isinstance(thing, list):
258
return
thing
259
else
:
260
return
[thing]
261
262
def
handle_wire(self, wire, peer, local, connection_type):
263
#
Callers
1
handle_wire
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected