diff -r 19e481fd2847 -r 3339c75dc777 RefactoringRope/ChangesPreviewDialog.py --- a/RefactoringRope/ChangesPreviewDialog.py Sun Jul 06 13:27:49 2014 +0200 +++ b/RefactoringRope/ChangesPreviewDialog.py Sun Jul 06 14:17:24 2014 +0200 @@ -9,8 +9,8 @@ from __future__ import unicode_literals -from PyQt4.QtCore import Qt, pyqtSlot -from PyQt4.QtGui import QDialogButtonBox, QListWidgetItem +from PyQt5.QtCore import Qt, pyqtSlot +from PyQt5.QtWidgets import QDialogButtonBox, QListWidgetItem from PreviewDialogBase import PreviewDialogBase @@ -32,7 +32,7 @@ PreviewDialogBase.__init__(self, parent) self.buttonBox.addButton( - self.trUtf8("&Apply Changes"), QDialogButtonBox.AcceptRole) + self.tr("&Apply Changes"), QDialogButtonBox.AcceptRole) self.buttonBox.addButton(QDialogButtonBox.Cancel) self.description.setText(changes.description) @@ -41,7 +41,7 @@ try: changeDescription = change.get_description() except AttributeError: - changeDescription = self.trUtf8("No changes available.") + changeDescription = self.tr("No changes available.") itm.setData(ChangesPreviewDialog.ChangeRole, changeDescription) if self.changesList.count():