MCPcopy Index your code
hub / github.com/PyQt5/PyQt / bytestostr

Method bytestostr

QWebView/GetCookie.py:35–44  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

33 super(WebView, self).closeEvent(event)
34
35 def bytestostr(self, data):
36 if isinstance(data, str):
37 return data
38 if isinstance(data, QByteArray):
39 data = data.data()
40 if isinstance(data, bytes):
41 data = data.decode(errors='ignore')
42 else:
43 data = str(data)
44 return data
45
46 def onLoadFinished(self):
47 allCookies = self.page().networkAccessManager().cookieJar().allCookies()

Callers 1

onLoadFinishedMethod · 0.95

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected