{"action":"opened","issue":{"url":"https://api.github.com/repos/babca/python-gsmmodem/issues/10","repository_url":"https://api.github.com/repos/babca/python-gsmmodem","labels_url":"https://api.github.com/repos/babca/python-gsmmodem/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/babca/python-gsmmodem/issues/10/comments","events_url":"https://api.github.com/repos/babca/python-gsmmodem/issues/10/events","html_url":"https://github.com/babca/python-gsmmodem/issues/10","id":176765838,"number":10,"title":"Use Unicode instead of Bytes in modem.py and only use Bytes inside SerialComms.write()","user":{"login":"babca","id":1409904,"avatar_url":"https://avatars.githubusercontent.com/u/1409904?v=3","gravatar_id":"","url":"https://api.github.com/users/babca","html_url":"https://github.com/babca","followers_url":"https://api.github.com/users/babca/followers","following_url":"https://api.github.com/users/babca/following{/other_user}","gists_url":"https://api.github.com/users/babca/gists{/gist_id}","starred_url":"https://api.github.com/users/babca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/babca/subscriptions","organizations_url":"https://api.github.com/users/babca/orgs","repos_url":"https://api.github.com/users/babca/repos","events_url":"https://api.github.com/users/babca/events{/privacy}","received_events_url":"https://api.github.com/users/babca/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/babca/python-gsmmodem/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-13T22:22:19Z","updated_at":"2016-09-13T22:22:19Z","closed_at":null,"body":"Find a better solution for https://github.com/babca/python-gsmmodem/pull/8/commits/d7ac12826f5080b8c7acb21a9a9a99232ad19eea\r\n\r\nlucasea777 wrote: \r\n\r\n> As far as I know, there is no way to properly use `.format()` with Bytes without using `.decode()`.\r\n> Maybe it is possible to use Unicode instead of Bytes in `modem.py` and only use Bytes inside `SerialComms.write()`, which in my opinion would lead to a much cleaner solution, but it might require more changes.\r\n> Also it might be better to carefully use `.decode()` before `.format()` only when necessary.\r\n> I can keep this changes in my fork until a better solution is found.\r\n\r\n\r\nSource: https://github.com/babca/python-gsmmodem/pull/8\r\n"}}
{"actor":{"display_login":"babca"}}