Next / Previous / Contents / Shipman's homepage

25.1. Syntax errors

  1. In buildIndex(), neglected to close parentheses:

            print >>sys.stderr, ( '*** Can't write the index page '
                "'%s'." % indexName
    

    should be:

            print >>sys.stderr, ( "*** Can't write the index page "
                "'%s'." % indexName )
    

  2. In indexBoilerplate, an unclosed string constant:

        conLink.tail  =  ( " for notational conventions and the "
                           "author's contact information. )
    

    should be:

        conLink.tail  =  ( " for notational conventions and the "
                           "author's contact information." )
    

  3. In YearRow.readOneMonth(), unclosed parenthesis.

                print >>sys.stderr, ( "*** Invalid monthly file "
                    "'%s': %s" % (monthFileName, detail) )
    

    should be:

                print >>sys.stderr, ( "*** Invalid monthly file "
                    "'%s': %s" % (monthFileName, detail) )
    

  4. In MonthCell.__notablesBlock(), unclosed string constant.

            self.__span ( div, NOTABLE_CLASS, 'Notable: )
    

    should be:

            self.__span ( div, NOTABLE_CLASS, 'Notable:' )