{"action":"created","issue":{"url":"https://api.github.com/repos/cobrateam/django-htmlmin/issues/85","labels_url":"https://api.github.com/repos/cobrateam/django-htmlmin/issues/85/labels{/name}","comments_url":"https://api.github.com/repos/cobrateam/django-htmlmin/issues/85/comments","events_url":"https://api.github.com/repos/cobrateam/django-htmlmin/issues/85/events","html_url":"https://github.com/cobrateam/django-htmlmin/issues/85","id":80674136,"number":85,"title":"NameError: name 'unicode' is not defined","user":{"login":"drcd","id":3251495,"avatar_url":"https://avatars.githubusercontent.com/u/3251495?v=3","gravatar_id":"","url":"https://api.github.com/users/drcd","html_url":"https://github.com/drcd","followers_url":"https://api.github.com/users/drcd/followers","following_url":"https://api.github.com/users/drcd/following{/other_user}","gists_url":"https://api.github.com/users/drcd/gists{/gist_id}","starred_url":"https://api.github.com/users/drcd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drcd/subscriptions","organizations_url":"https://api.github.com/users/drcd/orgs","repos_url":"https://api.github.com/users/drcd/repos","events_url":"https://api.github.com/users/drcd/events{/privacy}","received_events_url":"https://api.github.com/users/drcd/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-25T21:28:13Z","updated_at":"2015-05-26T16:23:53Z","closed_at":"2015-05-26T16:23:53Z","body":"I am using Django 1.8.2 on Python 3.4.2.\r\nI have added the appropriate middleware classes and set `HTML_MINIFY = True` in order to test it while having DEBUG on.\r\n\r\nWhen I run my development server, I get a \"NameError\" type of error, with the message \"name 'unicode' is not defined\".\r\n\r\n```\r\nException Value:\t\r\nname 'unicode' is not defined\r\nException Location:\t/Users/drcooldude/Desktop/testproject/env/lib/python3.4/site-packages/htmlmin/minify.py in html_minify, line 43\r\nPython Executable:\t/Users/drcooldude/Desktop/testproject/env/bin/python\r\n\r\nTraceback:\r\nFile \"/Users/drcooldude/Desktop/testproject/env/lib/python3.4/site-packages/django/core/handlers/base.py\" in get_response\r\n  223.                 response = middleware_method(request, response)\r\nFile \"/Users/drcooldude/Desktop/testproject/env/lib/python3.4/site-packages/htmlmin/middleware.py\" in process_response\r\n  44.                                            parser=parser)\r\nFile \"/Users/drcooldude/Desktop/testproject/env/lib/python3.4/site-packages/htmlmin/minify.py\" in html_minify\r\n  43.     return unicode(mini_soup)\r\n```\r\n\r\nAccording to my traceback, the error is located in minify.py at line 43.\r\n"},"comment":{"url":"https://api.github.com/repos/cobrateam/django-htmlmin/issues/comments/105588833","html_url":"https://github.com/cobrateam/django-htmlmin/issues/85#issuecomment-105588833","issue_url":"https://api.github.com/repos/cobrateam/django-htmlmin/issues/85","id":105588833,"user":{"login":"drcd","id":3251495,"avatar_url":"https://avatars.githubusercontent.com/u/3251495?v=3","gravatar_id":"","url":"https://api.github.com/users/drcd","html_url":"https://github.com/drcd","followers_url":"https://api.github.com/users/drcd/followers","following_url":"https://api.github.com/users/drcd/following{/other_user}","gists_url":"https://api.github.com/users/drcd/gists{/gist_id}","starred_url":"https://api.github.com/users/drcd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drcd/subscriptions","organizations_url":"https://api.github.com/users/drcd/orgs","repos_url":"https://api.github.com/users/drcd/repos","events_url":"https://api.github.com/users/drcd/events{/privacy}","received_events_url":"https://api.github.com/users/drcd/received_events","type":"User","site_admin":false},"created_at":"2015-05-26T16:23:53Z","updated_at":"2015-05-26T16:23:53Z","body":"Closing this, see #86 "}}