diff -r 7269e54fd316 -r d242ba11a04c RefactoringRope/CodeAssist.py --- a/RefactoringRope/CodeAssist.py Sat Mar 14 14:24:53 2015 +0100 +++ b/RefactoringRope/CodeAssist.py Sun Mar 22 17:33:44 2015 +0100 @@ -27,11 +27,12 @@ import Globals + class CodeAssist(QObject): """ Class implementing the autocompletion interface to rope. """ - def __init__(self, plugin, parent = None): + def __init__(self, plugin, parent=None): """ Constructor @@ -65,7 +66,7 @@ maxfixes = self.__plugin.getPreferences("MaxFixes") try: proposals = rope.contrib.codeassist.code_assist( - self.__project, source, offset, resource, maxfixes = maxfixes) + self.__project, source, offset, resource, maxfixes=maxfixes) proposals = rope.contrib.codeassist.sorted_proposals(proposals) names = [proposal.name for proposal in proposals] return names @@ -76,9 +77,9 @@ """ Public method to calculate calltips. + @param pos position in the text for the calltip (integer) @param editor reference to the editor object, that called this method QScintilla.Editor) - @param pos position in the text for the calltip (integer) @return list of possible calltips (list of strings) """ filename = editor.getFileName() @@ -93,8 +94,8 @@ line, index = editor.lineIndexFromPosition(pos) offset = len("".join(source.splitlines(True)[:line])) + index cts = rope.contrib.codeassist.get_calltip( - self.__project, source, offset, resource, maxfixes = maxfixes, - remove_self = True) + self.__project, source, offset, resource, maxfixes=maxfixes, + remove_self=True) if cts is not None: cts = [cts] else: