--- a/QScintilla/Lexers/LexerPython.py Sat Feb 03 10:45:52 2018 +0100 +++ b/QScintilla/Lexers/LexerPython.py Sat Feb 03 16:15:24 2018 +0100 @@ -83,7 +83,7 @@ @param editor QScintilla editor @return amount of difference in indentation (integer) """ - indent_width = Preferences.getEditor('IndentWidth') + indent_width = editor.getEditorConfig('IndentWidth') lead_spaces = editor.indentation(line)