Manually clean up the data in the locals for this context. Call this at the end of the request or use ``make_middleware()``.
(self)
| 347 | return self.ident_func() |
| 348 | |
| 349 | def cleanup(self): |
| 350 | """Manually clean up the data in the locals for this context. |
| 351 | |
| 352 | Call this at the end of the request or use ``make_middleware()``. |
| 353 | """ |
| 354 | for local in self.locals: |
| 355 | release_local(local) |
| 356 | |
| 357 | def __repr__(self): |
| 358 | return '<{} storages: {}>'.format( |