mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-03 20:10:10 +03:00
Add comment re dropping pytz compat
... when dropping Django 1.10
This commit is contained in:
parent
c01d9d63ee
commit
6c4cf2c646
|
@ -248,8 +248,9 @@ else:
|
||||||
def md_filter_add_syntax_highlight(md):
|
def md_filter_add_syntax_highlight(md):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
# pytz is required from Django 1.11. Remove when dropping Django 1.10 support.
|
||||||
try:
|
try:
|
||||||
import pytz # noqa
|
import pytz # noqa
|
||||||
from pytz.exceptions import InvalidTimeError
|
from pytz.exceptions import InvalidTimeError
|
||||||
except ImportError:
|
except ImportError:
|
||||||
InvalidTimeError = Exception
|
InvalidTimeError = Exception
|
||||||
|
|
Loading…
Reference in New Issue
Block a user