WebBrowser/Passwords/LoginForm.py

branch
QtWebEngine
changeset 4749
750577d35452
parent 4744
ad3f6c1caf8d
child 5389
9b1c800daff3
--- 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)

eric ide

mercurial