learning-unlimited/ESP-Website — pull request #1518 by benjaminjkraft (2014-12-23 19:38:35+00:00)
Title: Remove `isinstance(user, AnonymousUser)` checks

Turns out `ESPUser` inherits from `AnonymousUser`, so that doesn't do what one
might think. I generally replaced it with `user.is_anonymous()` which does work
correctly on ESPUsers. I didn't remove it from `ESPAuthMiddleware` because I
don't understand that well enough to know if I will break something massively.
Also removed an unused function rather than fixing it, and some unused imports
of `AnonymousUser`.