--- a/PluginRefactoringRope.py Wed Mar 08 19:35:56 2017 +0100 +++ b/PluginRefactoringRope.py Tue Mar 28 19:36:35 2017 +0200 @@ -26,7 +26,7 @@ author = "Detlev Offenbach <detlev@die-offenbachs.de>" autoactivate = True deactivateable = True -version = "4.2.6" +version = "4.2.7" className = "RefactoringRopePlugin" packageName = "RefactoringRope" internalPackages = "rope" @@ -307,7 +307,7 @@ locale_dir = \ os.path.join(os.path.dirname(__file__), "RefactoringRope", "i18n") - translation = "rope_%s" % loc + translation = "rope_{0}".format(loc) translator = QTranslator(None) loaded = translator.load(translation, locale_dir) if loaded: @@ -518,17 +518,17 @@ # eric versions before 6.1.0 don't support this pass - def __completionListSelected(self, id, txt): + def __completionListSelected(self, userListId, txt): """ Private slot to handle the selection from the completion list. - @param id the ID of the user list (should be 1) (integer) + @param userListId the ID of the user list (should be 1) (integer) @param txt the selected text (QString) """ from QScintilla.Editor import EditorAutoCompletionListID editor = self.sender() - if id == EditorAutoCompletionListID: + if userListId == EditorAutoCompletionListID: lst = txt.split() if len(lst) > 1: txt = lst[0] @@ -688,3 +688,6 @@ """ cts = self.__caObject.getCallTips(pos, editor) return cts + +# +# eflag: noqa = M801