--- a/WebBrowser/Passwords/LoginForm.py Thu Feb 18 20:19:33 2016 +0100 +++ b/WebBrowser/Passwords/LoginForm.py Fri Feb 19 19:26:54 2016 +0100 @@ -9,7 +9,7 @@ from __future__ import unicode_literals -from PyQt5.QtCore import QUrl, QByteArray +from PyQt5.QtCore import QUrl class LoginForm(object): @@ -22,7 +22,7 @@ """ self.url = QUrl() self.name = "" - self.postData = QByteArray() + self.postData = "" def isValid(self): """ @@ -31,4 +31,4 @@ @return flag indicating a valid form (boolean) """ return not self.url.isEmpty() and \ - not self.postData.isEmpty() + bool(self.postData)