diff options
-rw-r--r-- | askbot/forms.py | 2 | ||||
-rw-r--r-- | askbot/importers/stackexchange/management/commands/load_stackexchange.py | 2 | ||||
-rw-r--r-- | askbot/utils/http.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/askbot/forms.py b/askbot/forms.py index 153d56e6..fb81f851 100644 --- a/askbot/forms.py +++ b/askbot/forms.py @@ -291,7 +291,7 @@ class ShowQuestionForm(forms.Form): or invalid""" if self._errors: #since the form is always valid, clear the errors - logging.error(str(self._errors)) + logging.error(unicode(self._errors)) self._errors = {} in_data = self.get_pruned_data() diff --git a/askbot/importers/stackexchange/management/commands/load_stackexchange.py b/askbot/importers/stackexchange/management/commands/load_stackexchange.py index f6f56578..27e97665 100644 --- a/askbot/importers/stackexchange/management/commands/load_stackexchange.py +++ b/askbot/importers/stackexchange/management/commands/load_stackexchange.py @@ -248,7 +248,7 @@ class X(object):# #crude method of getting id provider name from the url @classmethod def get_openid_provider_name(cls, openid_url): - openid_str = str(openid_url) + openid_str = unicode(openid_url) bits = openid_str.split('/') base_url = bits[2] #assume this is base url url_bits = base_url.split('.') diff --git a/askbot/utils/http.py b/askbot/utils/http.py index 2c45b248..e9a57012 100644 --- a/askbot/utils/http.py +++ b/askbot/utils/http.py @@ -39,7 +39,7 @@ def get_request_info(request): elif request.method == 'POST': data = request.POST data = hide_passwords(copy(data)) - info += 'data: %s\n' % str(data) + info += 'data: %s\n' % unicode(data) info += 'host: %s\n' % request.get_host() if request.user.is_authenticated(): info += 'user ID: %d\n' % request.user.id |