tmt/utils.py
def read(self, path):
        """ Read a file from the workdir """
        path = os.path.join(self.workdir, path)
        self.debug(f"Read file '{path}'.")
        try:
            with open(path) as data:
                return data.read()
        except OSError as error:
            raise GeneralError(f"Failed to read '{path}'.\n{error}")
 Read a file from the workdir 
Read a file from the workdir
Read a file from the workdir
def read(self, path):
        path = os.path.join(self.workdir, path)
        self.debug(f"Read file '{path}'.")
        try:
            with open(path) as data:
                return data.read()
        except OSError as error:
            raise GeneralError(f"Failed to read '{path}'.\n{error}")
def read ( self , path ) : path = os . path . join ( self . workdir , path ) self . debug ( f"Read file '{path}'." ) try : with open ( path ) as data : return data . read ( ) except OSError as error : raise GeneralError ( f"Failed to read '{path}'.\n{error}" )
Read a file from the workdir
Read a file from the workdir
""" Read a file from the workdir """
self
path