def get_references(file_name, encoding='utf-8'):
 text = ''
 if (file_name is not None):
  if os.path.exists(file_name):
   try:
    with codecs.open(file_name, 'r', encoding=encoding) as f:
     text = f.read()
   except:
    print traceback.format_exc()
  else:
   print ('Could not find reference file %s!', file_name)
 return text

def get_references ( file_name , encoding = 'utf-8' ) : text = '' if ( file_name is not None ) : if os . path . exists ( file_name ) : try : with codecs . open ( file_name , 'r' , encoding = encoding ) as f : text = f . read ( ) except : print traceback . format_exc ( ) else : print ( 'Could not find reference file %s!' , file_name ) return text
get footnote and general references from outside source .