File: compat.py

package info (click to toggle)
python-django-debug-toolbar 1%3A1.9.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,480 kB
  • sloc: python: 3,346; makefile: 191; sh: 1
file content (11 lines) | stat: -rw-r--r-- 327 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
"""
This file exists to contain all Django and Python compatibility issues.

In order to avoid circular references, nothing should be imported from
debug_toolbar.
"""

try:
    from django.template.base import linebreak_iter  # NOQA
except ImportError:  # Django < 1.9
    from django.views.debug import linebreak_iter  # NOQA