Edgewall Software

Changeset 1190 for trunk


Ignore:
Timestamp:
Dec 29, 2012, 8:12:14 PM (11 years ago)
Author:
hodgestar
Message:

Templates should be loaded as bytes -- the encoding is passed around with the source explicitly. Fixes bugs in test suite in Python 3.3.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/genshi/template/loader.py

    r1180 r1190  
    284284        def _load_from_directory(filename):
    285285            filepath = os.path.join(path, filename)
    286             fileobj = open(filepath, 'rU')
     286            fileobj = open(filepath, 'rb')
    287287            mtime = os.path.getmtime(filepath)
    288288            def _uptodate():
Note: See TracChangeset for help on using the changeset viewer.