Skip to content
Myr

[svn] fixed another bug in the same darn file

Before adoption: this commit came in with the history the project adopted, so no landing records it.

--HG-- branch : trunk

authored by Armin Ronacher · committed by Armin Ronacher · parent ca80b45 · Browse files · 1 file+12 added−6 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+12 added−6 removed

  • other:+12 added−6 removed

1 file+12 added−6 removed

modified:jinja/loaders.py+12 added-6 removed
189 unmodified lines
190 if last_change is not None:191 try:192 cache_time = path.getmtime(cache_fn)193 except OSError:194 cache_time = -1195 if last_change is None or last_change <= cache_time:196 f = file(cache_fn, 'rb')194 cache_time = 0195 if last_change is None or (cache_time and196 last_change <= cache_time):197 try:198 f = file(cache_fn, 'rb')199 except IOError:200 tmpl = None201 save_to_disk = True202 else:203 try:198 tmpl = Template.load(environment, f)199 finally:200 f.close()204 tmpl = Template.load(environment, f)205 finally:206 f.close()207 else:208 save_to_disk = True209210 # if we still have no template we load, parse and translate it.
280 unmodified lines