Add comment re dropping pytz compat

... when dropping Django 1.10
This commit is contained in:
Carlton Gibson 2017-11-10 09:22:19 +01:00 committed by GitHub
parent c01d9d63ee
commit 6c4cf2c646
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -248,8 +248,9 @@ else:
def md_filter_add_syntax_highlight(md):
return False
# pytz is required from Django 1.11. Remove when dropping Django 1.10 support.
try:
import pytz # noqa
import pytz # noqa
from pytz.exceptions import InvalidTimeError
except ImportError:
InvalidTimeError = Exception