#NEWLINE# def parse_env_dict( env ) : #NEWLINE# #INDENT# ret = dict ( ) #NEWLINE# for ( k , v ) in env . items ( ) : #NEWLINE# #INDENT# v = re . sub ( '\\$([A-Z]+[A-Z0-9_]*)' , replace_env , v ) #NEWLINE# ret [ k . strip ( ) ] = v . strip ( ) #NEWLINE# #UNINDENT# return v