Manually clean up the data in the locals for this context. Call this at the end of the request or use ``make_middleware()``.
(self)
| 290 | return self.ident_func() |
| 291 | |
| 292 | def cleanup(self): |
| 293 | """Manually clean up the data in the locals for this context. |
| 294 | |
| 295 | Call this at the end of the request or use ``make_middleware()``. |
| 296 | """ |
| 297 | for local in self.locals: |
| 298 | release_local(local) |
| 299 | |
| 300 | def __repr__(self): |
| 301 | return '<{} storages: {}>'.format( |