MCPcopy
hub / github.com/corpnewt/gibMacOS / _get_str

Method _get_str

Scripts/disk.py:26–30  ·  view source on GitHub ↗
(self, val)

Source from the content-addressed store, hash-verified

24 self._update_disks()
25
26 def _get_str(self, val):
27 # Helper method to return a string value based on input type
28 if (sys.version_info < (3,0) and isinstance(val, unicode)) or (sys.version_info >= (3,0) and isinstance(val, bytes)):
29 return val.encode("utf-8")
30 return str(val)
31
32 def _get_plist(self, s):
33 p = {}

Callers 1

get_identifierMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected