#NEWLINE# def get_key( self , keyname ) : #NEWLINE# #INDENT# 'Returns a key. Uses memoized_keys where possible' #NEWLINE# keyname = self . _normalize_unicode ( keyname ) #NEWLINE# if ( keyname in self . saved_keys ) : #NEWLINE# #INDENT# return self . saved_keys [ keyname ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# key = self . bucket . get_key ( keyname ) #NEWLINE# if key : #NEWLINE# #INDENT# self . saved_keys [ key . name ] = key #NEWLINE# #UNINDENT# return keyname