Sort imports to please flak8

This commit is contained in:
awiebe 2023-08-25 17:23:36 -07:00 committed by GitHub
parent 3dce5b782d
commit 2e90c5acd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,8 +1,8 @@
"""
Provides various throttling policies.
"""
import time
import re
import time
from django.core.cache import cache as default_cache
from django.core.exceptions import ImproperlyConfigured
@ -113,7 +113,7 @@ class SimpleRateThrottle(BaseThrottle):
m = re.search(self._RATE_DENOMINATOR_REGEX, denominator)
dg = m.groups()
dn= int(m[0]) if len(m[0])>0 else 1
dn= int(m[0]) if len(m[0]) > 0 else 1
du = m[1][0]
duration = {'s': 1, 'm': 60, 'h': 3600, 'd': 86400}[du]