#NEWLINE# def dependency_for( modulename ) : #NEWLINE# #INDENT# def decorate( obj ) : #NEWLINE# #INDENT# tokens = modulename . split ( '.' ) #NEWLINE# mod = compat . import_ ( '.' . join ( tokens [ 0 : ( - 1 ) ] ) , globals ( ) , locals ( ) , tokens [ ( - 1 ) ] ) #NEWLINE# mod = getattr ( mod , tokens [ ( - 1 ) ] ) #NEWLINE# setattr ( mod , obj . __name__ , obj ) #NEWLINE# return obj #NEWLINE# #UNINDENT# return modulename