QScintilla/MarkupProviders/HyperlinkMarkupDialog.py

changeset 5412
db5a520f69d3
parent 5407
f833f89571b8
child 6048
82ad8ec9548c
--- a/QScintilla/MarkupProviders/HyperlinkMarkupDialog.py	Tue Jan 10 19:15:17 2017 +0100
+++ b/QScintilla/MarkupProviders/HyperlinkMarkupDialog.py	Tue Jan 10 19:23:25 2017 +0100
@@ -7,6 +7,8 @@
 Module implementing a dialog to enter data to insert a hyperlink.
 """
 
+from __future__ import unicode_literals
+
 from PyQt5.QtCore import pyqtSlot
 from PyQt5.QtWidgets import QDialog, QDialogButtonBox
 
@@ -51,7 +53,7 @@
         Private method to update the state of the OK button.
         """
         self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(
-            (bool(self.textEdit.text()) or self.__allowEmptyText) and 
+            (bool(self.textEdit.text()) or self.__allowEmptyText) and
             (bool(self.targetEdit.text()) or self.__allowEmptyTarget)
         )
     
@@ -66,7 +68,7 @@
         self.__updateOkButton()
     
     @pyqtSlot(str)
-    def on_targetEdit_textChanged(self, tyt):
+    def on_targetEdit_textChanged(self, txt):
         """
         Private slot handling a change of the link target.
         

eric ide

mercurial