MCPcopy Create free account
hub / github.com/FreeOpcUa/python-opcua / unpack

Method unpack

opcua/ua/ua_binary.py:77–85  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

75
76 @staticmethod
77 def unpack(data):
78 b = _Bytes.unpack(data)
79 if sys.version_info.major < 3:
80 # return unicode(b) #might be correct for python2 but would complicate tests for python3
81 return b
82 else:
83 if b is None:
84 return b
85 return b.decode("utf-8")
86
87
88class _Null(object):

Callers

nothing calls this directly

Calls 1

unpackMethod · 0.45

Tested by

no test coverage detected