mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2024-12-13 18:31:10 +01:00
Fix pycodestyle warnings
This commit is contained in:
parent
46a5982184
commit
fcde14b82c
@ -157,8 +157,8 @@ class Akismet(object):
|
|||||||
``Akismet`` instance.
|
``Akismet`` instance.
|
||||||
"""
|
"""
|
||||||
if key is None and isfile('apikey.txt'):
|
if key is None and isfile('apikey.txt'):
|
||||||
the_file = [l.strip() for l in open('apikey.txt').readlines()
|
the_file = [line.strip() for line in open('apikey.txt').readlines()
|
||||||
if l.strip() and not l.strip().startswith('#')]
|
if line.strip() and not line.strip().startswith('#')]
|
||||||
try:
|
try:
|
||||||
self.key = the_file[0]
|
self.key = the_file[0]
|
||||||
self.blog_url = the_file[1]
|
self.blog_url = the_file[1]
|
||||||
|
Loading…
Reference in New Issue
Block a user