#NEWLINE# def getdict( self , name , default = None ) : #NEWLINE# #INDENT# '\n        Get a setting value as a dictionary. If the setting original type is a\n        dictionary, a copy of it will be returned. If it is a string it will be\n        evaluated as a JSON dictionary. In the case that it is a\n        :class:`~scrapy.settings.BaseSettings` instance itself, it will be\n        converted to a dictionary, containing all its current settings values\n        as they would be returned by :meth:`~scrapy.settings.BaseSettings.get`,\n        and losing all information about priority and mutability.\n\n        :param name: the setting name\n        :type name: string\n\n        :param default: the value to return if no setting is found\n        :type default: any\n        ' #NEWLINE# value = self . get ( name , ( default or { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) ) #NEWLINE# if isinstance ( value , six . string_types ) : #NEWLINE# #INDENT# value = json . loads ( value ) #NEWLINE# #UNINDENT# return dict ( value )