{"action":"created","issue":{"url":"https://api.github.com/repos/CashStar/nap/issues/11","labels_url":"https://api.github.com/repos/CashStar/nap/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/CashStar/nap/issues/11/comments","events_url":"https://api.github.com/repos/CashStar/nap/issues/11/events","html_url":"https://github.com/CashStar/nap/pull/11","id":126875036,"number":11,"title":"Handle non-string types in nap.utils.to_unicode","user":{"login":"mpistrang","id":1401703,"avatar_url":"https://avatars.githubusercontent.com/u/1401703?v=3","gravatar_id":"","url":"https://api.github.com/users/mpistrang","html_url":"https://github.com/mpistrang","followers_url":"https://api.github.com/users/mpistrang/followers","following_url":"https://api.github.com/users/mpistrang/following{/other_user}","gists_url":"https://api.github.com/users/mpistrang/gists{/gist_id}","starred_url":"https://api.github.com/users/mpistrang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpistrang/subscriptions","organizations_url":"https://api.github.com/users/mpistrang/orgs","repos_url":"https://api.github.com/users/mpistrang/repos","events_url":"https://api.github.com/users/mpistrang/events{/privacy}","received_events_url":"https://api.github.com/users/mpistrang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-15T13:45:00Z","updated_at":"2016-01-15T14:23:25Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/CashStar/nap/pulls/11","html_url":"https://github.com/CashStar/nap/pull/11","diff_url":"https://github.com/CashStar/nap/pull/11.diff","patch_url":"https://github.com/CashStar/nap/pull/11.patch"},"body":"update `nap.utils.to_unicode` to handle non-string types just like `ctar_lib.cstar.py23.to_unicode` does for 7_00."},"comment":{"url":"https://api.github.com/repos/CashStar/nap/issues/comments/171973352","html_url":"https://github.com/CashStar/nap/pull/11#issuecomment-171973352","issue_url":"https://api.github.com/repos/CashStar/nap/issues/11","id":171973352,"user":{"login":"mpistrang","id":1401703,"avatar_url":"https://avatars.githubusercontent.com/u/1401703?v=3","gravatar_id":"","url":"https://api.github.com/users/mpistrang","html_url":"https://github.com/mpistrang","followers_url":"https://api.github.com/users/mpistrang/followers","following_url":"https://api.github.com/users/mpistrang/following{/other_user}","gists_url":"https://api.github.com/users/mpistrang/gists{/gist_id}","starred_url":"https://api.github.com/users/mpistrang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpistrang/subscriptions","organizations_url":"https://api.github.com/users/mpistrang/orgs","repos_url":"https://api.github.com/users/mpistrang/repos","events_url":"https://api.github.com/users/mpistrang/events{/privacy}","received_events_url":"https://api.github.com/users/mpistrang/received_events","type":"User","site_admin":false},"created_at":"2016-01-15T14:23:25Z","updated_at":"2016-01-15T14:23:25Z","body":"I thought he did too, it is in master, but its not in the source that is bootstrapped in with @700:\r\n\r\nThe following code is on the semiprod proc box in bach_service's virtualenv:\r\n\r\n__text_fn = str if six.PY3 else unicode\r\ndef to_unicode(s):\r\n    if s is None:\r\n       return None\r\n    return s if isinstance(s, six.text_type) else __text_fn(s, 'utf-8')\r\n\r\n\r\nNow do we fix the 7_00 tag!?"}}