parameters: (self, dir, file_name)
docstring: Read all the available username and password pairs saved in
          file(path is "dir + file_name"), Return value is one list of elements
          ['name', 'password'], If get information failed, empty list will be
          returned.
docstring_summary: Read all the available username and password pairs saved in
          file(path is "dir + file_name"), Return value is one list of elements
          ['name', 'password'], If get information failed, empty list will be
          returned.
docstring_tokens: Read all the available username and password pairs saved in file ( path is dir + file_name ) Return value is one list of elements [ name password ] If get information failed empty list will be returned .
function: def _get_saved_user_info(self, dir, file_name):
          ''' Read all the available username and password pairs saved in
          file(path is "dir + file_name"), Return value is one list of elements
          ['name', 'password'], If get information failed, empty list will be
          returned.'''
          if (not dir) or (not os.path.exists(dir)):
              return []
  
          try:
              csvfile = None
              users = []
              csvfile = open(dir + file_name)
              users_info = csv.reader(csvfile)
              for row in users_info:
                  users.append([row[0], row[1]])
          except (IOError, IndexError) as err:
              self._print("Error reading saved username and password "
                          "from %s%s: %s" % (dir, file_name, err))
          finally:
              if csvfile:
                  csvfile.close()
              return users
function_tokens: def _get_saved_user_info ( self , dir , file_name ) : if ( not dir ) or ( not os . path . exists ( dir ) ) : return [ ] try : csvfile = None users = [ ] csvfile = open ( dir + file_name ) users_info = csv . reader ( csvfile ) for row in users_info : users . append ( [ row [ 0 ] , row [ 1 ] ] ) except ( IOError , IndexError ) as err : self . _print ( "Error reading saved username and password " "from %s%s: %s" % ( dir , file_name , err ) ) finally : if csvfile : csvfile . close ( ) return users