{"action":"created","comment":{"url":"https://api.github.com/repos/crs4/hl7apy/pulls/comments/38092886","id":38092886,"diff_hunk":"@@ -308,7 +311,7 @@ def find_reference(name, element_types, version):\n \n def load_message_profile(path):\n     with open(path) as f:","path":"hl7apy/__init__.py","position":15,"original_position":15,"commit_id":"d220845f9e9109839f0f1ebc7cc1d3f0848d7a53","original_commit_id":"d220845f9e9109839f0f1ebc7cc1d3f0848d7a53","user":{"login":"svituz","id":5197616,"avatar_url":"https://avatars.githubusercontent.com/u/5197616?v=3","gravatar_id":"","url":"https://api.github.com/users/svituz","html_url":"https://github.com/svituz","followers_url":"https://api.github.com/users/svituz/followers","following_url":"https://api.github.com/users/svituz/following{/other_user}","gists_url":"https://api.github.com/users/svituz/gists{/gist_id}","starred_url":"https://api.github.com/users/svituz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svituz/subscriptions","organizations_url":"https://api.github.com/users/svituz/orgs","repos_url":"https://api.github.com/users/svituz/repos","events_url":"https://api.github.com/users/svituz/events{/privacy}","received_events_url":"https://api.github.com/users/svituz/received_events","type":"User","site_admin":false},"body":"Most of the tests fails because of this line.\r\nIt raises `TypeError:  'str' does not support the buffer interface`.\r\nIt should be sufficient to change it to `with open(path, 'rb') as f:` to make it work","created_at":"2015-08-27T13:12:30Z","updated_at":"2015-08-27T13:12:30Z","html_url":"https://github.com/crs4/hl7apy/pull/19#discussion_r38092886","pull_request_url":"https://api.github.com/repos/crs4/hl7apy/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/crs4/hl7apy/pulls/comments/38092886"},"html":{"href":"https://github.com/crs4/hl7apy/pull/19#discussion_r38092886"},"pull_request":{"href":"https://api.github.com/repos/crs4/hl7apy/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/crs4/hl7apy/pulls/19","id":42890266,"html_url":"https://github.com/crs4/hl7apy/pull/19","diff_url":"https://github.com/crs4/hl7apy/pull/19.diff","patch_url":"https://github.com/crs4/hl7apy/pull/19.patch","issue_url":"https://api.github.com/repos/crs4/hl7apy/issues/19","number":19,"state":"open","locked":false,"title":"Updated to work with Python 3.","user":{"login":"eheinz","id":5263215,"avatar_url":"https://avatars.githubusercontent.com/u/5263215?v=3","gravatar_id":"","url":"https://api.github.com/users/eheinz","html_url":"https://github.com/eheinz","followers_url":"https://api.github.com/users/eheinz/followers","following_url":"https://api.github.com/users/eheinz/following{/other_user}","gists_url":"https://api.github.com/users/eheinz/gists{/gist_id}","starred_url":"https://api.github.com/users/eheinz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eheinz/subscriptions","organizations_url":"https://api.github.com/users/eheinz/orgs","repos_url":"https://api.github.com/users/eheinz/repos","events_url":"https://api.github.com/users/eheinz/events{/privacy}","received_events_url":"https://api.github.com/users/eheinz/received_events","type":"User","site_admin":false},"body":"This pull request adds support for python 3.  I chose to use the try/except approach rather than adding any external dependencies like six or python-future.  I also leveraged the added support for unicode literals in python 3.3 (which substantially reduced the amount of code that needed to be altered).  As a result, it works on python 3.3+.","created_at":"2015-08-20T04:23:30Z","updated_at":"2015-08-27T13:12:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a195242090b7678f3825a710e27fff96ddccdf3e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/crs4/hl7apy/pulls/19/commits","review_comments_url":"https://api.github.com/repos/crs4/hl7apy/pulls/19/comments","review_comment_url":"https://api.github.com/repos/crs4/hl7apy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/crs4/hl7apy/issues/19/comments","statuses_url":"https://api.github.com/repos/crs4/hl7apy/statuses/d220845f9e9109839f0f1ebc7cc1d3f0848d7a53","head":{"label":"setaris:python3","ref":"python3","sha":"d220845f9e9109839f0f1ebc7cc1d3f0848d7a53","user":{"login":"setaris","id":3227404,"avatar_url":"https://avatars.githubusercontent.com/u/3227404?v=3","gravatar_id":"","url":"https://api.github.com/users/setaris","html_url":"https://github.com/setaris","followers_url":"https://api.github.com/users/setaris/followers","following_url":"https://api.github.com/users/setaris/following{/other_user}","gists_url":"https://api.github.com/users/setaris/gists{/gist_id}","starred_url":"https://api.github.com/users/setaris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/setaris/subscriptions","organizations_url":"https://api.github.com/users/setaris/orgs","repos_url":"https://api.github.com/users/setaris/repos","events_url":"https://api.github.com/users/setaris/events{/privacy}","received_events_url":"https://api.github.com/users/setaris/received_events","type":"Organization","site_admin":false},"repo":{"id":41073913,"name":"hl7apy","full_name":"setaris/hl7apy","owner":{"login":"setaris","id":3227404,"avatar_url":"https://avatars.githubusercontent.com/u/3227404?v=3","gravatar_id":"","url":"https://api.github.com/users/setaris","html_url":"https://github.com/setaris","followers_url":"https://api.github.com/users/setaris/followers","following_url":"https://api.github.com/users/setaris/following{/other_user}","gists_url":"https://api.github.com/users/setaris/gists{/gist_id}","starred_url":"https://api.github.com/users/setaris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/setaris/subscriptions","organizations_url":"https://api.github.com/users/setaris/orgs","repos_url":"https://api.github.com/users/setaris/repos","events_url":"https://api.github.com/users/setaris/events{/privacy}","received_events_url":"https://api.github.com/users/setaris/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/setaris/hl7apy","description":"Python library to parse, create and handle HL7 v2 messages.","fork":true,"url":"https://api.github.com/repos/setaris/hl7apy","forks_url":"https://api.github.com/repos/setaris/hl7apy/forks","keys_url":"https://api.github.com/repos/setaris/hl7apy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/setaris/hl7apy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/setaris/hl7apy/teams","hooks_url":"https://api.github.com/repos/setaris/hl7apy/hooks","issue_events_url":"https://api.github.com/repos/setaris/hl7apy/issues/events{/number}","events_url":"https://api.github.com/repos/setaris/hl7apy/events","assignees_url":"https://api.github.com/repos/setaris/hl7apy/assignees{/user}","branches_url":"https://api.github.com/repos/setaris/hl7apy/branches{/branch}","tags_url":"https://api.github.com/repos/setaris/hl7apy/tags","blobs_url":"https://api.github.com/repos/setaris/hl7apy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/setaris/hl7apy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/setaris/hl7apy/git/refs{/sha}","trees_url":"https://api.github.com/repos/setaris/hl7apy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/setaris/hl7apy/statuses/{sha}","languages_url":"https://api.github.com/repos/setaris/hl7apy/languages","stargazers_url":"https://api.github.com/repos/setaris/hl7apy/stargazers","contributors_url":"https://api.github.com/repos/setaris/hl7apy/contributors","subscribers_url":"https://api.github.com/repos/setaris/hl7apy/subscribers","subscription_url":"https://api.github.com/repos/setaris/hl7apy/subscription","commits_url":"https://api.github.com/repos/setaris/hl7apy/commits{/sha}","git_commits_url":"https://api.github.com/repos/setaris/hl7apy/git/commits{/sha}","comments_url":"https://api.github.com/repos/setaris/hl7apy/comments{/number}","issue_comment_url":"https://api.github.com/repos/setaris/hl7apy/issues/comments{/number}","contents_url":"https://api.github.com/repos/setaris/hl7apy/contents/{+path}","compare_url":"https://api.github.com/repos/setaris/hl7apy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/setaris/hl7apy/merges","archive_url":"https://api.github.com/repos/setaris/hl7apy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/setaris/hl7apy/downloads","issues_url":"https://api.github.com/repos/setaris/hl7apy/issues{/number}","pulls_url":"https://api.github.com/repos/setaris/hl7apy/pulls{/number}","milestones_url":"https://api.github.com/repos/setaris/hl7apy/milestones{/number}","notifications_url":"https://api.github.com/repos/setaris/hl7apy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/setaris/hl7apy/labels{/name}","releases_url":"https://api.github.com/repos/setaris/hl7apy/releases{/id}","created_at":"2015-08-20T03:41:02Z","updated_at":"2015-08-20T03:41:02Z","pushed_at":"2015-08-20T04:05:52Z","git_url":"git://github.com/setaris/hl7apy.git","ssh_url":"git@github.com:setaris/hl7apy.git","clone_url":"https://github.com/setaris/hl7apy.git","svn_url":"https://github.com/setaris/hl7apy","homepage":"hl7apy.org","size":1910,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"crs4:develop","ref":"develop","sha":"934c5d483e0489052fb3e4263435aeb2d785f4c4","user":{"login":"crs4","id":4609555,"avatar_url":"https://avatars.githubusercontent.com/u/4609555?v=3","gravatar_id":"","url":"https://api.github.com/users/crs4","html_url":"https://github.com/crs4","followers_url":"https://api.github.com/users/crs4/followers","following_url":"https://api.github.com/users/crs4/following{/other_user}","gists_url":"https://api.github.com/users/crs4/gists{/gist_id}","starred_url":"https://api.github.com/users/crs4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crs4/subscriptions","organizations_url":"https://api.github.com/users/crs4/orgs","repos_url":"https://api.github.com/users/crs4/repos","events_url":"https://api.github.com/users/crs4/events{/privacy}","received_events_url":"https://api.github.com/users/crs4/received_events","type":"Organization","site_admin":false},"repo":{"id":12003789,"name":"hl7apy","full_name":"crs4/hl7apy","owner":{"login":"crs4","id":4609555,"avatar_url":"https://avatars.githubusercontent.com/u/4609555?v=3","gravatar_id":"","url":"https://api.github.com/users/crs4","html_url":"https://github.com/crs4","followers_url":"https://api.github.com/users/crs4/followers","following_url":"https://api.github.com/users/crs4/following{/other_user}","gists_url":"https://api.github.com/users/crs4/gists{/gist_id}","starred_url":"https://api.github.com/users/crs4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crs4/subscriptions","organizations_url":"https://api.github.com/users/crs4/orgs","repos_url":"https://api.github.com/users/crs4/repos","events_url":"https://api.github.com/users/crs4/events{/privacy}","received_events_url":"https://api.github.com/users/crs4/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/crs4/hl7apy","description":"Python library to parse, create and handle HL7 v2 messages.","fork":false,"url":"https://api.github.com/repos/crs4/hl7apy","forks_url":"https://api.github.com/repos/crs4/hl7apy/forks","keys_url":"https://api.github.com/repos/crs4/hl7apy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crs4/hl7apy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crs4/hl7apy/teams","hooks_url":"https://api.github.com/repos/crs4/hl7apy/hooks","issue_events_url":"https://api.github.com/repos/crs4/hl7apy/issues/events{/number}","events_url":"https://api.github.com/repos/crs4/hl7apy/events","assignees_url":"https://api.github.com/repos/crs4/hl7apy/assignees{/user}","branches_url":"https://api.github.com/repos/crs4/hl7apy/branches{/branch}","tags_url":"https://api.github.com/repos/crs4/hl7apy/tags","blobs_url":"https://api.github.com/repos/crs4/hl7apy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crs4/hl7apy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crs4/hl7apy/git/refs{/sha}","trees_url":"https://api.github.com/repos/crs4/hl7apy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crs4/hl7apy/statuses/{sha}","languages_url":"https://api.github.com/repos/crs4/hl7apy/languages","stargazers_url":"https://api.github.com/repos/crs4/hl7apy/stargazers","contributors_url":"https://api.github.com/repos/crs4/hl7apy/contributors","subscribers_url":"https://api.github.com/repos/crs4/hl7apy/subscribers","subscription_url":"https://api.github.com/repos/crs4/hl7apy/subscription","commits_url":"https://api.github.com/repos/crs4/hl7apy/commits{/sha}","git_commits_url":"https://api.github.com/repos/crs4/hl7apy/git/commits{/sha}","comments_url":"https://api.github.com/repos/crs4/hl7apy/comments{/number}","issue_comment_url":"https://api.github.com/repos/crs4/hl7apy/issues/comments{/number}","contents_url":"https://api.github.com/repos/crs4/hl7apy/contents/{+path}","compare_url":"https://api.github.com/repos/crs4/hl7apy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crs4/hl7apy/merges","archive_url":"https://api.github.com/repos/crs4/hl7apy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crs4/hl7apy/downloads","issues_url":"https://api.github.com/repos/crs4/hl7apy/issues{/number}","pulls_url":"https://api.github.com/repos/crs4/hl7apy/pulls{/number}","milestones_url":"https://api.github.com/repos/crs4/hl7apy/milestones{/number}","notifications_url":"https://api.github.com/repos/crs4/hl7apy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crs4/hl7apy/labels{/name}","releases_url":"https://api.github.com/repos/crs4/hl7apy/releases{/id}","created_at":"2013-08-09T15:14:41Z","updated_at":"2015-08-17T15:16:10Z","pushed_at":"2015-08-20T04:23:30Z","git_url":"git://github.com/crs4/hl7apy.git","ssh_url":"git@github.com:crs4/hl7apy.git","clone_url":"https://github.com/crs4/hl7apy.git","svn_url":"https://github.com/crs4/hl7apy","homepage":"hl7apy.org","size":2289,"stargazers_count":21,"watchers_count":21,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":11,"mirror_url":null,"open_issues_count":7,"forks":11,"open_issues":7,"watchers":21,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/crs4/hl7apy/pulls/19"},"html":{"href":"https://github.com/crs4/hl7apy/pull/19"},"issue":{"href":"https://api.github.com/repos/crs4/hl7apy/issues/19"},"comments":{"href":"https://api.github.com/repos/crs4/hl7apy/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/crs4/hl7apy/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/crs4/hl7apy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/crs4/hl7apy/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/crs4/hl7apy/statuses/d220845f9e9109839f0f1ebc7cc1d3f0848d7a53"}}}}