#NEWLINE# def _get_credentials( ) : #NEWLINE# #INDENT# tmp_dir = _get_dir ( ) #NEWLINE# cred = ( '%s/credentials' % tmp_dir ) #NEWLINE# with open ( cred , 'r' ) as fh : #NEWLINE# #INDENT# ( server , port , un , domain ) = fh . read ( ) . split ( ',' ) #NEWLINE# #UNINDENT# port = int ( port ) #NEWLINE# login = ( ( ( un + '@' ) + domain ) + '.com' ) #NEWLINE# import base64 #NEWLINE# with open ( ( '%s/cron_email_pwd' % tmp_dir ) , 'r' ) as fh : #NEWLINE# #INDENT# pwd = base64 . b64decode ( fh . read ( ) ) #NEWLINE# #UNINDENT# return ( server , port , login , pwd )