{"action":"closed","number":128,"pull_request":{"url":"https://api.github.com/repos/osuosl/pymesync/pulls/128","id":65810201,"html_url":"https://github.com/osuosl/pymesync/pull/128","diff_url":"https://github.com/osuosl/pymesync/pull/128.diff","patch_url":"https://github.com/osuosl/pymesync/pull/128.patch","issue_url":"https://api.github.com/repos/osuosl/pymesync/issues/128","number":128,"state":"closed","locked":false,"title":"Change str() method call to unicode()","user":{"login":"matthewrsj","id":12090084,"avatar_url":"https://avatars.githubusercontent.com/u/12090084?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewrsj","html_url":"https://github.com/matthewrsj","followers_url":"https://api.github.com/users/matthewrsj/followers","following_url":"https://api.github.com/users/matthewrsj/following{/other_user}","gists_url":"https://api.github.com/users/matthewrsj/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewrsj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewrsj/subscriptions","organizations_url":"https://api.github.com/users/matthewrsj/orgs","repos_url":"https://api.github.com/users/matthewrsj/repos","events_url":"https://api.github.com/users/matthewrsj/events{/privacy}","received_events_url":"https://api.github.com/users/matthewrsj/received_events","type":"User","site_admin":false},"body":"Fixes #127 . str() fails when passed unicode.\r\n\r\nManual testing displayed below:\r\n\r\n```\r\nmrsj@pewter:~/work/pymesync/pymesync [mrsj/bugfix-unicode] (venv) » python\r\nPython 2.7.9 (default, Mar  1 2015, 12:57:24) \r\n[GCC 4.9.2] on linux2\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n>>> import pymesync\r\n>>> ts = pymesync.TimeSync(\"<baseurl>\")\r\n>>> ts.authenticate(\"admin\", \"<password>\", \"password\")\r\n{u'token': u'YouDOnTNeEEdtoSeeAlLThis===='}\r\n>>> ts.get_activities()\r\n{'pymesync error': 'connection to TimeSync failed at baseurl http://timesync-staging.osuosl.org/v1 - response status was 200'}\r\n>>> \r\nKeyboardInterrupt\r\n>>> \r\nmrsj@pewter:~/work/pymesync/pymesync [mrsj/bugfix-unicode] (venv) » git stash apply\r\nOn branch mrsj/bugfix-unicode\r\nChanges not staged for commit:\r\n  (use \"git add <file>...\" to update what will be committed)\r\n  (use \"git checkout -- <file>...\" to discard changes in working directory)\r\n\r\n\tmodified:   pymesync.py\r\n\r\nno changes added to commit (use \"git add\" and/or \"git commit -a\")\r\nmrsj@pewter:~/work/pymesync/pymesync [mrsj/bugfix-unicode] (venv) » python\r\nPython 2.7.9 (default, Mar  1 2015, 12:57:24) \r\n[GCC 4.9.2] on linux2\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n>>> import pymesync\r\n>>> ts = pymesync.TimeSync(\"<baseurl>\")\r\n>>> ts.authenticate(\"admin\", \"<password>\", \"password\")\r\n{u'token': u'YouDOnTNeEEdtoSeeAlLThis=='}\r\n>>> ts.get_activities()\r\n[{u'uuid': u'aea9825d-ded6-444d-be7e-6757ce621807', u'created_at': u'2016-03-22', u'updated_at': None, u'name': u'Documentation', u'deleted_at': None, u'slug': u'docs', u'revision': 1}, {u'uuid': u'46cf4220-cd8f-4bb4-bc93-a54cc729172c', u'created_at': u'2016-03-29', u'updated_at': None, u'name': u'Meetings', u'deleted_at': None, u'slug': u'meet', u'revision': 1}, {u'uuid': u'fef5f73e-6a5b-4eb3-852f-6f4bfb0c2868', u'created_at': u'2016-03-30', u'updated_at': u'2016-04-05', u'name': u'Testing', u'deleted_at': None, u'slug': u'docs', u'revision': 2}, {u'uuid': u'b42aec92-364b-4a28-993d-839e02ded501', u'created_at': u'2016-04-05', u'updated_at': None, u'name': u'Testing', u'deleted_at': None, u'slug': u'testing', u'revision': 1}, {u'uuid': u'2a1477ad-74e8-4d6a-a8fe-de07ea2d05a3', u'created_at': u'2016-03-22', u'updated_at': u'2016-04-05', u'name': u'\\xa0', u'deleted_at': None, u'slug': u'dev', u'revision': 2}]\r\n>>> \r\n\r\n```","created_at":"2016-04-08T16:12:24Z","updated_at":"2016-04-08T16:18:07Z","closed_at":"2016-04-08T16:18:07Z","merged_at":"2016-04-08T16:18:07Z","merge_commit_sha":"6cdfcf2478572caadd3d1515fd16c5f79df50229","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/osuosl/pymesync/pulls/128/commits","review_comments_url":"https://api.github.com/repos/osuosl/pymesync/pulls/128/comments","review_comment_url":"https://api.github.com/repos/osuosl/pymesync/pulls/comments{/number}","comments_url":"https://api.github.com/repos/osuosl/pymesync/issues/128/comments","statuses_url":"https://api.github.com/repos/osuosl/pymesync/statuses/d4ad628b9b0e65de92c1e6079b9af46cbd466044","head":{"label":"osuosl:mrsj/bugfix-unicode","ref":"mrsj/bugfix-unicode","sha":"d4ad628b9b0e65de92c1e6079b9af46cbd466044","user":{"login":"osuosl","id":1380625,"avatar_url":"https://avatars.githubusercontent.com/u/1380625?v=3","gravatar_id":"","url":"https://api.github.com/users/osuosl","html_url":"https://github.com/osuosl","followers_url":"https://api.github.com/users/osuosl/followers","following_url":"https://api.github.com/users/osuosl/following{/other_user}","gists_url":"https://api.github.com/users/osuosl/gists{/gist_id}","starred_url":"https://api.github.com/users/osuosl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osuosl/subscriptions","organizations_url":"https://api.github.com/users/osuosl/orgs","repos_url":"https://api.github.com/users/osuosl/repos","events_url":"https://api.github.com/users/osuosl/events{/privacy}","received_events_url":"https://api.github.com/users/osuosl/received_events","type":"Organization","site_admin":false},"repo":{"id":44197569,"name":"pymesync","full_name":"osuosl/pymesync","owner":{"login":"osuosl","id":1380625,"avatar_url":"https://avatars.githubusercontent.com/u/1380625?v=3","gravatar_id":"","url":"https://api.github.com/users/osuosl","html_url":"https://github.com/osuosl","followers_url":"https://api.github.com/users/osuosl/followers","following_url":"https://api.github.com/users/osuosl/following{/other_user}","gists_url":"https://api.github.com/users/osuosl/gists{/gist_id}","starred_url":"https://api.github.com/users/osuosl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osuosl/subscriptions","organizations_url":"https://api.github.com/users/osuosl/orgs","repos_url":"https://api.github.com/users/osuosl/repos","events_url":"https://api.github.com/users/osuosl/events{/privacy}","received_events_url":"https://api.github.com/users/osuosl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/osuosl/pymesync","description":"Python module to interface with the TimeSync API","fork":false,"url":"https://api.github.com/repos/osuosl/pymesync","forks_url":"https://api.github.com/repos/osuosl/pymesync/forks","keys_url":"https://api.github.com/repos/osuosl/pymesync/keys{/key_id}","collaborators_url":"https://api.github.com/repos/osuosl/pymesync/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/osuosl/pymesync/teams","hooks_url":"https://api.github.com/repos/osuosl/pymesync/hooks","issue_events_url":"https://api.github.com/repos/osuosl/pymesync/issues/events{/number}","events_url":"https://api.github.com/repos/osuosl/pymesync/events","assignees_url":"https://api.github.com/repos/osuosl/pymesync/assignees{/user}","branches_url":"https://api.github.com/repos/osuosl/pymesync/branches{/branch}","tags_url":"https://api.github.com/repos/osuosl/pymesync/tags","blobs_url":"https://api.github.com/repos/osuosl/pymesync/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/osuosl/pymesync/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/osuosl/pymesync/git/refs{/sha}","trees_url":"https://api.github.com/repos/osuosl/pymesync/git/trees{/sha}","statuses_url":"https://api.github.com/repos/osuosl/pymesync/statuses/{sha}","languages_url":"https://api.github.com/repos/osuosl/pymesync/languages","stargazers_url":"https://api.github.com/repos/osuosl/pymesync/stargazers","contributors_url":"https://api.github.com/repos/osuosl/pymesync/contributors","subscribers_url":"https://api.github.com/repos/osuosl/pymesync/subscribers","subscription_url":"https://api.github.com/repos/osuosl/pymesync/subscription","commits_url":"https://api.github.com/repos/osuosl/pymesync/commits{/sha}","git_commits_url":"https://api.github.com/repos/osuosl/pymesync/git/commits{/sha}","comments_url":"https://api.github.com/repos/osuosl/pymesync/comments{/number}","issue_comment_url":"https://api.github.com/repos/osuosl/pymesync/issues/comments{/number}","contents_url":"https://api.github.com/repos/osuosl/pymesync/contents/{+path}","compare_url":"https://api.github.com/repos/osuosl/pymesync/compare/{base}...{head}","merges_url":"https://api.github.com/repos/osuosl/pymesync/merges","archive_url":"https://api.github.com/repos/osuosl/pymesync/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/osuosl/pymesync/downloads","issues_url":"https://api.github.com/repos/osuosl/pymesync/issues{/number}","pulls_url":"https://api.github.com/repos/osuosl/pymesync/pulls{/number}","milestones_url":"https://api.github.com/repos/osuosl/pymesync/milestones{/number}","notifications_url":"https://api.github.com/repos/osuosl/pymesync/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/osuosl/pymesync/labels{/name}","releases_url":"https://api.github.com/repos/osuosl/pymesync/releases{/id}","deployments_url":"https://api.github.com/repos/osuosl/pymesync/deployments","created_at":"2015-10-13T18:50:03Z","updated_at":"2016-01-11T17:39:58Z","pushed_at":"2016-04-08T16:18:07Z","git_url":"git://github.com/osuosl/pymesync.git","ssh_url":"git@github.com:osuosl/pymesync.git","clone_url":"https://github.com/osuosl/pymesync.git","svn_url":"https://github.com/osuosl/pymesync","homepage":null,"size":1080,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"osuosl:develop","ref":"develop","sha":"255960934966a1a541bfac39b6cf27a4e791bc89","user":{"login":"osuosl","id":1380625,"avatar_url":"https://avatars.githubusercontent.com/u/1380625?v=3","gravatar_id":"","url":"https://api.github.com/users/osuosl","html_url":"https://github.com/osuosl","followers_url":"https://api.github.com/users/osuosl/followers","following_url":"https://api.github.com/users/osuosl/following{/other_user}","gists_url":"https://api.github.com/users/osuosl/gists{/gist_id}","starred_url":"https://api.github.com/users/osuosl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osuosl/subscriptions","organizations_url":"https://api.github.com/users/osuosl/orgs","repos_url":"https://api.github.com/users/osuosl/repos","events_url":"https://api.github.com/users/osuosl/events{/privacy}","received_events_url":"https://api.github.com/users/osuosl/received_events","type":"Organization","site_admin":false},"repo":{"id":44197569,"name":"pymesync","full_name":"osuosl/pymesync","owner":{"login":"osuosl","id":1380625,"avatar_url":"https://avatars.githubusercontent.com/u/1380625?v=3","gravatar_id":"","url":"https://api.github.com/users/osuosl","html_url":"https://github.com/osuosl","followers_url":"https://api.github.com/users/osuosl/followers","following_url":"https://api.github.com/users/osuosl/following{/other_user}","gists_url":"https://api.github.com/users/osuosl/gists{/gist_id}","starred_url":"https://api.github.com/users/osuosl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osuosl/subscriptions","organizations_url":"https://api.github.com/users/osuosl/orgs","repos_url":"https://api.github.com/users/osuosl/repos","events_url":"https://api.github.com/users/osuosl/events{/privacy}","received_events_url":"https://api.github.com/users/osuosl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/osuosl/pymesync","description":"Python module to interface with the TimeSync API","fork":false,"url":"https://api.github.com/repos/osuosl/pymesync","forks_url":"https://api.github.com/repos/osuosl/pymesync/forks","keys_url":"https://api.github.com/repos/osuosl/pymesync/keys{/key_id}","collaborators_url":"https://api.github.com/repos/osuosl/pymesync/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/osuosl/pymesync/teams","hooks_url":"https://api.github.com/repos/osuosl/pymesync/hooks","issue_events_url":"https://api.github.com/repos/osuosl/pymesync/issues/events{/number}","events_url":"https://api.github.com/repos/osuosl/pymesync/events","assignees_url":"https://api.github.com/repos/osuosl/pymesync/assignees{/user}","branches_url":"https://api.github.com/repos/osuosl/pymesync/branches{/branch}","tags_url":"https://api.github.com/repos/osuosl/pymesync/tags","blobs_url":"https://api.github.com/repos/osuosl/pymesync/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/osuosl/pymesync/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/osuosl/pymesync/git/refs{/sha}","trees_url":"https://api.github.com/repos/osuosl/pymesync/git/trees{/sha}","statuses_url":"https://api.github.com/repos/osuosl/pymesync/statuses/{sha}","languages_url":"https://api.github.com/repos/osuosl/pymesync/languages","stargazers_url":"https://api.github.com/repos/osuosl/pymesync/stargazers","contributors_url":"https://api.github.com/repos/osuosl/pymesync/contributors","subscribers_url":"https://api.github.com/repos/osuosl/pymesync/subscribers","subscription_url":"https://api.github.com/repos/osuosl/pymesync/subscription","commits_url":"https://api.github.com/repos/osuosl/pymesync/commits{/sha}","git_commits_url":"https://api.github.com/repos/osuosl/pymesync/git/commits{/sha}","comments_url":"https://api.github.com/repos/osuosl/pymesync/comments{/number}","issue_comment_url":"https://api.github.com/repos/osuosl/pymesync/issues/comments{/number}","contents_url":"https://api.github.com/repos/osuosl/pymesync/contents/{+path}","compare_url":"https://api.github.com/repos/osuosl/pymesync/compare/{base}...{head}","merges_url":"https://api.github.com/repos/osuosl/pymesync/merges","archive_url":"https://api.github.com/repos/osuosl/pymesync/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/osuosl/pymesync/downloads","issues_url":"https://api.github.com/repos/osuosl/pymesync/issues{/number}","pulls_url":"https://api.github.com/repos/osuosl/pymesync/pulls{/number}","milestones_url":"https://api.github.com/repos/osuosl/pymesync/milestones{/number}","notifications_url":"https://api.github.com/repos/osuosl/pymesync/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/osuosl/pymesync/labels{/name}","releases_url":"https://api.github.com/repos/osuosl/pymesync/releases{/id}","deployments_url":"https://api.github.com/repos/osuosl/pymesync/deployments","created_at":"2015-10-13T18:50:03Z","updated_at":"2016-01-11T17:39:58Z","pushed_at":"2016-04-08T16:18:07Z","git_url":"git://github.com/osuosl/pymesync.git","ssh_url":"git@github.com:osuosl/pymesync.git","clone_url":"https://github.com/osuosl/pymesync.git","svn_url":"https://github.com/osuosl/pymesync","homepage":null,"size":1080,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/osuosl/pymesync/pulls/128"},"html":{"href":"https://github.com/osuosl/pymesync/pull/128"},"issue":{"href":"https://api.github.com/repos/osuosl/pymesync/issues/128"},"comments":{"href":"https://api.github.com/repos/osuosl/pymesync/issues/128/comments"},"review_comments":{"href":"https://api.github.com/repos/osuosl/pymesync/pulls/128/comments"},"review_comment":{"href":"https://api.github.com/repos/osuosl/pymesync/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/osuosl/pymesync/pulls/128/commits"},"statuses":{"href":"https://api.github.com/repos/osuosl/pymesync/statuses/d4ad628b9b0e65de92c1e6079b9af46cbd466044"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"matthewrsj","id":12090084,"avatar_url":"https://avatars.githubusercontent.com/u/12090084?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewrsj","html_url":"https://github.com/matthewrsj","followers_url":"https://api.github.com/users/matthewrsj/followers","following_url":"https://api.github.com/users/matthewrsj/following{/other_user}","gists_url":"https://api.github.com/users/matthewrsj/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewrsj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewrsj/subscriptions","organizations_url":"https://api.github.com/users/matthewrsj/orgs","repos_url":"https://api.github.com/users/matthewrsj/repos","events_url":"https://api.github.com/users/matthewrsj/events{/privacy}","received_events_url":"https://api.github.com/users/matthewrsj/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}