MCPcopy
hub / github.com/pyload/pyload / clear

Method clear

module/lib/jinja2/bccache.py:211–221  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

209 f.close()
210
211 def clear(self):
212 # imported lazily here because google app-engine doesn't support
213 # write access on the file system and the function does not exist
214 # normally.
215 from os import remove
216 files = fnmatch.filter(listdir(self.directory), self.pattern % '*')
217 for filename in files:
218 try:
219 remove(path.join(self.directory, filename))
220 except OSError:
221 pass
222
223
224class MemcachedBytecodeCache(BytecodeCache):

Callers

nothing calls this directly

Calls 3

removeFunction · 0.85
filterMethod · 0.80
joinMethod · 0.80

Tested by

no test coverage detected