Permalink
Browse files

Applied doseq=True fix (for non-unicode characters) to submit_ham|spam.

  • Loading branch information...
1 parent 97f0cb1 commit 16095377f4b754c043ed2b3b7c682f0f027d2b21 @mikery mikery committed Jan 5, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 akismet.py
View
@@ -350,7 +350,7 @@ def submit_spam(self, comment, data=None, build_data=True):
# we *don't* trap the error here
# so if akismet is down it will raise an HTTPError or URLError
headers = {'User-Agent' : self.user_agent}
- self._safeRequest(url, urlencode(data), headers)
+ self._safeRequest(url, urlencode(data, doseq=True), headers)
def submit_ham(self, comment, data=None, build_data=True):
@@ -371,4 +371,5 @@ def submit_ham(self, comment, data=None, build_data=True):
# we *don't* trap the error here
# so if akismet is down it will raise an HTTPError or URLError
headers = {'User-Agent' : self.user_agent}
- self._safeRequest(url, urlencode(data), headers)
+ self._safeRequest(url, urlencode(data, doseq=True), headers)
+

0 comments on commit 1609537

Please sign in to comment.