#NEWLINE# def _get_package_version_from_project( cfg , name ) : #NEWLINE# #INDENT# choices = ( name . lower ( ) , ( 'lektor-' + name . lower ( ) ) ) #NEWLINE# for ( pkg , version ) in iteritems ( cfg . section_as_dict ( 'packages' ) ) : #NEWLINE# #INDENT# if ( pkg . lower ( ) in choices ) : #NEWLINE# #INDENT# return { #NEWLINE# #INDENT# 'name' : name , #NEWLINE# 'version' : version , #NEWLINE# #UNINDENT# }