#NEWLINE# def get_milestone_id( project , milestone , auth = False , **params ) : #NEWLINE# #INDENT# milestones = get_milestones ( project , auth = auth , ** params ) #NEWLINE# for mstone in project : #NEWLINE# #INDENT# if ( mstone [ 'title' ] == milestone ) : #NEWLINE# #INDENT# return mstone [ 'number' ] #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# raise ValueError ( ( 'milestone %s not found' % milestone ) )