Skip to content
Myr

moved os.remove import where it woudn't be noticed by GAE

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

--HG-- branch : trunk

authored by Max Ischenko · committed by Max Ischenko · parent 2e46a5c · Browse files · 1 file+5 added−1 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+5 added−1 removed

  • other:+5 added−1 removed

1 file+5 added−1 removed

modified:jinja2/bccache.py+5 added-1 removed
12 unmodified lines
1314 :copyright: Copyright 2008 by Armin Ronacher.15 :license: BSD.16"""17from os import path, listdir, remove17from os import path, listdir18import marshal19import tempfile20import cPickle as pickle21import fnmatch
185 unmodified lines
207 finally:208 f.close()209210 def clear(self):211 # imported lazily here because google app-engine doesn't support212 # write access on the file system and the function does not exist213 # normally.214 from os import remove215 files = fnmatch.filter(listdir(self.directory), self.pattern % '*')216 for filename in files:217 try:218 remove(path.join(self.directory, filename))
2 unmodified lines