{"action":"created","issue":{"url":"https://api.github.com/repos/webpy/webpy/issues/474","repository_url":"https://api.github.com/repos/webpy/webpy","labels_url":"https://api.github.com/repos/webpy/webpy/issues/474/labels{/name}","comments_url":"https://api.github.com/repos/webpy/webpy/issues/474/comments","events_url":"https://api.github.com/repos/webpy/webpy/issues/474/events","html_url":"https://github.com/webpy/webpy/issues/474","id":366144476,"node_id":"MDU6SXNzdWUzNjYxNDQ0NzY=","number":474,"title":"all kinds of errors when using comments or strings of bytes","user":{"login":"themaddoctor","id":6364418,"node_id":"MDQ6VXNlcjYzNjQ0MTg=","avatar_url":"https://avatars0.githubusercontent.com/u/6364418?v=4","gravatar_id":"","url":"https://api.github.com/users/themaddoctor","html_url":"https://github.com/themaddoctor","followers_url":"https://api.github.com/users/themaddoctor/followers","following_url":"https://api.github.com/users/themaddoctor/following{/other_user}","gists_url":"https://api.github.com/users/themaddoctor/gists{/gist_id}","starred_url":"https://api.github.com/users/themaddoctor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/themaddoctor/subscriptions","organizations_url":"https://api.github.com/users/themaddoctor/orgs","repos_url":"https://api.github.com/users/themaddoctor/repos","events_url":"https://api.github.com/users/themaddoctor/events{/privacy}","received_events_url":"https://api.github.com/users/themaddoctor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-10-03T01:53:01Z","updated_at":"2018-10-31T17:33:09Z","closed_at":null,"author_association":"NONE","body":"If I add a comment with a nonascii character IN A COMMENT it throws an error.\r\n\r\nCode:\r\n\r\n#!/usr/bin/env python\r\nfrom sys import setdefaultencoding\r\nsetdefaultencoding('utf8')\r\n# ü\r\n\r\nerror:\r\n\r\n<type 'exceptions.SyntaxError'> at /\r\nNon-ASCII character '\\xc3' in file /home/0000/server.py on line 22, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details (server.py, line 22)\r\nPython | /usr/lib/python2.7/site-packages/web/application.py in check, line 721\r\n-- | --\r\nGET http://localhost:8080/\r\n\r\nAlso the damn thing is executing modules THAT HAVE BEEN COMMENTED OUT and then throwing more errors about strings. Those modules work just fine OUTSIDE web.py apps.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/webpy/webpy/issues/comments/434778828","html_url":"https://github.com/webpy/webpy/issues/474#issuecomment-434778828","issue_url":"https://api.github.com/repos/webpy/webpy/issues/474","id":434778828,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNDc3ODgyOA==","user":{"login":"cclauss","id":3709715,"node_id":"MDQ6VXNlcjM3MDk3MTU=","avatar_url":"https://avatars3.githubusercontent.com/u/3709715?v=4","gravatar_id":"","url":"https://api.github.com/users/cclauss","html_url":"https://github.com/cclauss","followers_url":"https://api.github.com/users/cclauss/followers","following_url":"https://api.github.com/users/cclauss/following{/other_user}","gists_url":"https://api.github.com/users/cclauss/gists{/gist_id}","starred_url":"https://api.github.com/users/cclauss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cclauss/subscriptions","organizations_url":"https://api.github.com/users/cclauss/orgs","repos_url":"https://api.github.com/users/cclauss/repos","events_url":"https://api.github.com/users/cclauss/events{/privacy}","received_events_url":"https://api.github.com/users/cclauss/received_events","type":"User","site_admin":false},"created_at":"2018-10-31T17:33:08Z","updated_at":"2018-10-31T17:33:08Z","author_association":"CONTRIBUTOR","body":"Are you running on Python or on legacy Python?\r\n\r\n__sys.setdefaultencoding()__ was removed in Python 3 because all __str__ are Unicode utf-8."}}
{"actor":{"display_login":"cclauss"}}