Fix for pygments 1.6rc.

See also: https://github.com/tomchristie/django-rest-framework/issues/581