(self)
| 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 | |
| 224 | class MemcachedBytecodeCache(BytecodeCache): |