Replace timezone.utc with timezone_utc.

This commit is contained in:
hackerkid
2017-04-15 06:59:56 +05:30
committed by Tim Abbott
parent c47dd65c14
commit 55c3d12078
8 changed files with 18 additions and 14 deletions

View File

@@ -1,6 +1,7 @@
from __future__ import absolute_import
from django.utils import timezone
from django.utils.timezone import utc as timezone_utc
import hashlib
import logging
@@ -12,7 +13,7 @@ from zerver.lib.str_utils import force_bytes
# Adapted http://djangosnippets.org/snippets/2242/ by user s29 (October 25, 2010)
class _RateLimitFilter(object):
last_error = datetime.min.replace(tzinfo=timezone.utc)
last_error = datetime.min.replace(tzinfo=timezone_utc)
def filter(self, record):
# type: (logging.LogRecord) -> bool