Skip to content

Commit

Permalink
Requests bug in install.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nekmo committed Apr 16, 2016
1 parent e4eb841 commit 96d12be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion akismet/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import datetime
import requests
from akismet.exceptions import AkismetServerError, MissingParameterError

__version__ = '0.2.2'
Expand Down Expand Up @@ -52,6 +51,7 @@ def _get_parameters(self, data):
return data

def _request(self, url, parameters, headers=None):
import requests
headers = headers or self.get_headers()
return requests.post(url, data=parameters, headers=headers)

Expand Down

0 comments on commit 96d12be

Please sign in to comment.