Open database cursor using a context manager
Open database cursor using a context manager

Using a context manager ensures the cursor is always closed at a
deterministic time, even in the event of a failure.

jazzband/django-debug-toolbar,django-debug-toolbar/django-debug-toolbar,spookylukey/django-debug-toolbar,jazzband/django-debug-toolbar,spookylukey/django-debug-toolbar,spookylukey/django-debug-toolbar,tim-schilling/django-debug-toolbar,tim-schilling/django-debug-toolbar,django-debug-toolbar/django-debug-toolbar,django-debug-toolbar/django-debug-toolbar,tim-schilling/django-debug-toolbar,jazzband/django-debug-toolbar