{"action":"opened","issue":{"url":"https://api.github.com/repos/gunyarakun/python-shogi/issues/1","repository_url":"https://api.github.com/repos/gunyarakun/python-shogi","labels_url":"https://api.github.com/repos/gunyarakun/python-shogi/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/gunyarakun/python-shogi/issues/1/comments","events_url":"https://api.github.com/repos/gunyarakun/python-shogi/issues/1/events","html_url":"https://github.com/gunyarakun/python-shogi/issues/1","id":183192661,"number":1,"title":"python3でCSA.pyが動かない","user":{"login":"YusukeSuzuki","id":657060,"avatar_url":"https://avatars.githubusercontent.com/u/657060?v=3","gravatar_id":"","url":"https://api.github.com/users/YusukeSuzuki","html_url":"https://github.com/YusukeSuzuki","followers_url":"https://api.github.com/users/YusukeSuzuki/followers","following_url":"https://api.github.com/users/YusukeSuzuki/following{/other_user}","gists_url":"https://api.github.com/users/YusukeSuzuki/gists{/gist_id}","starred_url":"https://api.github.com/users/YusukeSuzuki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YusukeSuzuki/subscriptions","organizations_url":"https://api.github.com/users/YusukeSuzuki/orgs","repos_url":"https://api.github.com/users/YusukeSuzuki/repos","events_url":"https://api.github.com/users/YusukeSuzuki/events{/privacy}","received_events_url":"https://api.github.com/users/YusukeSuzuki/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-15T06:27:09Z","updated_at":"2016-10-15T06:27:09Z","closed_at":null,"body":"python3 で random_csa_tcp_match を動かそうとすると以下のエラーが出ます。\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"./random_csa_tcp_match\", line 23, in <module>\r\n    ct.login(sys.argv[2], sys.argv[3])\r\n  File \"......./python-shogi/shogi/CSA.py\", line 377, in login\r\n    line = self.command('LOGIN {0} {1}'.format(username, password))\r\n  File \"......./python-shogi/shogi/CSA.py\", line 335, in command\r\n    self.write(command + '\\n')\r\n  File \"......./python-shogi/shogi/CSA.py\", line 340, in write\r\n    self.socket.sendall(buf)\r\nTypeError: a bytes-like object is required, not 'str'\r\n```\r\n\r\nbufにencode(), decode()をつければpython3でも動きますがpython2と互換のコードになっているかわからずプルリクエストが出せません。"}}
{"actor":{"display_login":"YusukeSuzuki"}}