PEP-8 fixes for lib.py

This commit is contained in:
Garret Wassermann 2019-01-02 20:08:55 -05:00
parent 6cfc1ca75c
commit e1f9fc03ce

View File

@ -176,9 +176,9 @@ def text_is_spam(text, request):
site = Site(domain='configure-django-sites.com')
# see https://akismet.readthedocs.io/en/latest/overview.html#using-akismet
apikey = None
if hasattr(settings, 'TYPEPAD_ANTISPAM_API_KEY'):
apikey = settings.TYPEPAD_ANTISPAM_API_KEY
ak.baseurl = 'api.antispam.typepad.com/1.1/'