Logo Search packages:      
Sourcecode: dblatex version File versions  Download package

def dbtexmf::dblatex::grubber::logparser::LogParser::read (   self,
  name 
)

Read the specified log file, checking that it was produced by the
right compiler. Returns true if the log file is invalid or does not
exist.

Definition at line 43 of file logparser.py.

00043                          :
        """
        Read the specified log file, checking that it was produced by the
        right compiler. Returns true if the log file is invalid or does not
        exist.
        """
        self.lines = []
        try:
            file = open(name)
        except IOError:
            return 2
        line = file.readline()
        if not line:
            file.close()
            return 1
        if not self.re_loghead.match(line):
            file.close()
            return 1
        self.lines = file.readlines()
        file.close()
        return 0

    #-- Process information {{{2

    def errors (self):


Generated by  Doxygen 1.6.0   Back to index