#NEWLINE# def set_cursor_position( self , path , position ) : #NEWLINE# #INDENT# '\n        Cache encoding for the specified file path.\n\n        :param path: path of the file to cache\n        :param position: cursor position to cache\n        ' #NEWLINE# try : #NEWLINE# #INDENT# map = json . loads ( self . _settings . value ( 'cachedCursorPosition' ) ) #NEWLINE# #UNINDENT# except TypeError : #NEWLINE# #INDENT# map = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# map [ path ] = position #NEWLINE# self . _settings . setValue ( 'cachedCursorPosition' , json . dumps ( map ) )