#NEWLINE# def format_era( self , char , num ) : #NEWLINE# #INDENT# width = { #NEWLINE# #INDENT# 3 : 'abbreviated' , #NEWLINE# 4 : 'wide' , #NEWLINE# 5 : 'narrow' , #NEWLINE# #UNINDENT# } [ max ( 3 , num ) ] #NEWLINE# era = int ( ( num . value . year >= 0 ) ) #NEWLINE# return get_era_names ( width , self . locale ) [ era ]