#NEWLINE# def _getitem_from_frame( f_locals , key , default = None ) : #NEWLINE# #INDENT# "\n    f_locals is not guaranteed to have .get(), but it will always\n    support __getitem__. Even if it doesn't, we return ``default``.\n    " #NEWLINE# try : #NEWLINE# #INDENT# return f_locals [ key ] #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# return default