MCPcopy Create free account
hub / github.com/PyQt5/PyQt / bytestostr

Method bytestostr

QWebEngineView/GetCookie.py:45–54  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

43 super(WebEngineView, self).closeEvent(event)
44
45 def bytestostr(self, data):
46 if isinstance(data, str):
47 return data
48 if isinstance(data, QByteArray):
49 data = data.data()
50 if isinstance(data, bytes):
51 data = data.decode(errors='ignore')
52 else:
53 data = str(data)
54 return data
55
56 def onLoadFinished(self):
57 print("*****AllDomainCookies:", self.getAllDomainCookies())

Callers 1

onLoadFinishedMethod · 0.95

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected