Edgewall Software

Ticket #485: TemplateLoader-use-valid-file-mode.patch

File TemplateLoader-use-valid-file-mode.patch, 502 bytes (added by Erik Swanson <erik.swanson@…>, 12 years ago)

Use the original file mode 'rU' instead of the invalid 'rbU'.

  • loader.py

     
    283283        """
    284284        def _load_from_directory(filename):
    285285            filepath = os.path.join(path, filename)
    286             fileobj = open(filepath, 'rbU')
     286            fileobj = open(filepath, 'rU')
    287287            mtime = os.path.getmtime(filepath)
    288288            def _uptodate():
    289289                return mtime == os.path.getmtime(filepath)