MCPcopy Create free account
hub / github.com/KLayout/klayout / str_from_bytearray

Method str_from_bytearray

testdata/python/basic.py:2076–2080  ·  view source on GitHub ↗
(ba)

Source from the content-addressed store, hash-verified

2074 def test_33(self):
2075
2076 def str_from_bytearray(ba):
2077 if (sys.version_info > (3, 0)):
2078 return ba
2079 else:
2080 return ba.decode("utf-8")
2081
2082 # run test only if we have Qt bindings
2083 if not "QByteArrayPair" in pya.__dict__:

Callers

nothing calls this directly

Calls 1

decodeMethod · 0.45

Tested by

no test coverage detected