def readlines(self, filepath):
        """Returns the list of strings extracted from the file using either
        open() if it is a local file, or by copying over the network using
        sftp over SSH."""
        target = self._read_check(filepath)

        if os.path.isfile(target):
            with open(target) as f:
                lines = f.readlines()

            #If we got this file via SSH, delete it from the temp folder
            if self.is_ssh(filepath):
                os.remove(target)
        else:
            lines = []

        return lines
def readlines ( self , filepath ) : target = self . _read_check ( filepath ) if os . path . isfile ( target ) : with open ( target ) as f : lines = f . readlines ( ) if self . is_ssh ( filepath ) : os . remove ( target ) else : lines = [ ] return lines
Returns the list of strings extracted from the file using either
        open() if it is a local file, or by copying over the network using
        sftp over SSH.