{"action":"opened","number":9853,"pull_request":{"url":"https://api.github.com/repos/opencv/opencv/pulls/9853","id":146516622,"html_url":"https://github.com/opencv/opencv/pull/9853","diff_url":"https://github.com/opencv/opencv/pull/9853.diff","patch_url":"https://github.com/opencv/opencv/pull/9853.patch","issue_url":"https://api.github.com/repos/opencv/opencv/issues/9853","number":9853,"state":"open","locked":false,"title":"Fix some DNN samples for compatibility with Python 3","user":{"login":"catree","id":8229425,"avatar_url":"https://avatars2.githubusercontent.com/u/8229425?v=4","gravatar_id":"","url":"https://api.github.com/users/catree","html_url":"https://github.com/catree","followers_url":"https://api.github.com/users/catree/followers","following_url":"https://api.github.com/users/catree/following{/other_user}","gists_url":"https://api.github.com/users/catree/gists{/gist_id}","starred_url":"https://api.github.com/users/catree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/catree/subscriptions","organizations_url":"https://api.github.com/users/catree/orgs","repos_url":"https://api.github.com/users/catree/repos","events_url":"https://api.github.com/users/catree/events{/privacy}","received_events_url":"https://api.github.com/users/catree/received_events","type":"User","site_admin":false},"body":"<!-- Please use this line to close one or multiple issues when this pullrequest gets merged\r\nYou can add another line right under the first one:\r\nresolves #1234\r\nresolves #1235\r\n-->\r\n\r\n### This pullrequest introduces\r\nsmall changes to be able to run some DNN samples with Python 3:\r\n\r\n- integer division returns float in Python 3, [see](https://stackoverflow.com/questions/1282945/python-integer-division-yields-float)\r\n- long renamed to int in Python 3\r\n\r\nI hope these changes do not break the compatibility with Python 2.\r\n\r\n<!-- Please describe what your pullrequest is changing -->\r\n","created_at":"2017-10-13T17:51:54Z","updated_at":"2017-10-13T17:51:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/opencv/opencv/pulls/9853/commits","review_comments_url":"https://api.github.com/repos/opencv/opencv/pulls/9853/comments","review_comment_url":"https://api.github.com/repos/opencv/opencv/pulls/comments{/number}","comments_url":"https://api.github.com/repos/opencv/opencv/issues/9853/comments","statuses_url":"https://api.github.com/repos/opencv/opencv/statuses/96ecc2fee2c32f23c697762faf772cd8a55864bd","head":{"label":"catree:fix_dnn_samples_python3","ref":"fix_dnn_samples_python3","sha":"96ecc2fee2c32f23c697762faf772cd8a55864bd","user":{"login":"catree","id":8229425,"avatar_url":"https://avatars2.githubusercontent.com/u/8229425?v=4","gravatar_id":"","url":"https://api.github.com/users/catree","html_url":"https://github.com/catree","followers_url":"https://api.github.com/users/catree/followers","following_url":"https://api.github.com/users/catree/following{/other_user}","gists_url":"https://api.github.com/users/catree/gists{/gist_id}","starred_url":"https://api.github.com/users/catree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/catree/subscriptions","organizations_url":"https://api.github.com/users/catree/orgs","repos_url":"https://api.github.com/users/catree/repos","events_url":"https://api.github.com/users/catree/events{/privacy}","received_events_url":"https://api.github.com/users/catree/received_events","type":"User","site_admin":false},"repo":{"id":63516610,"name":"opencv","full_name":"catree/opencv","owner":{"login":"catree","id":8229425,"avatar_url":"https://avatars2.githubusercontent.com/u/8229425?v=4","gravatar_id":"","url":"https://api.github.com/users/catree","html_url":"https://github.com/catree","followers_url":"https://api.github.com/users/catree/followers","following_url":"https://api.github.com/users/catree/following{/other_user}","gists_url":"https://api.github.com/users/catree/gists{/gist_id}","starred_url":"https://api.github.com/users/catree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/catree/subscriptions","organizations_url":"https://api.github.com/users/catree/orgs","repos_url":"https://api.github.com/users/catree/repos","events_url":"https://api.github.com/users/catree/events{/privacy}","received_events_url":"https://api.github.com/users/catree/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/catree/opencv","description":"Open Source Computer Vision Library","fork":true,"url":"https://api.github.com/repos/catree/opencv","forks_url":"https://api.github.com/repos/catree/opencv/forks","keys_url":"https://api.github.com/repos/catree/opencv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/catree/opencv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/catree/opencv/teams","hooks_url":"https://api.github.com/repos/catree/opencv/hooks","issue_events_url":"https://api.github.com/repos/catree/opencv/issues/events{/number}","events_url":"https://api.github.com/repos/catree/opencv/events","assignees_url":"https://api.github.com/repos/catree/opencv/assignees{/user}","branches_url":"https://api.github.com/repos/catree/opencv/branches{/branch}","tags_url":"https://api.github.com/repos/catree/opencv/tags","blobs_url":"https://api.github.com/repos/catree/opencv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/catree/opencv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/catree/opencv/git/refs{/sha}","trees_url":"https://api.github.com/repos/catree/opencv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/catree/opencv/statuses/{sha}","languages_url":"https://api.github.com/repos/catree/opencv/languages","stargazers_url":"https://api.github.com/repos/catree/opencv/stargazers","contributors_url":"https://api.github.com/repos/catree/opencv/contributors","subscribers_url":"https://api.github.com/repos/catree/opencv/subscribers","subscription_url":"https://api.github.com/repos/catree/opencv/subscription","commits_url":"https://api.github.com/repos/catree/opencv/commits{/sha}","git_commits_url":"https://api.github.com/repos/catree/opencv/git/commits{/sha}","comments_url":"https://api.github.com/repos/catree/opencv/comments{/number}","issue_comment_url":"https://api.github.com/repos/catree/opencv/issues/comments{/number}","contents_url":"https://api.github.com/repos/catree/opencv/contents/{+path}","compare_url":"https://api.github.com/repos/catree/opencv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/catree/opencv/merges","archive_url":"https://api.github.com/repos/catree/opencv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/catree/opencv/downloads","issues_url":"https://api.github.com/repos/catree/opencv/issues{/number}","pulls_url":"https://api.github.com/repos/catree/opencv/pulls{/number}","milestones_url":"https://api.github.com/repos/catree/opencv/milestones{/number}","notifications_url":"https://api.github.com/repos/catree/opencv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/catree/opencv/labels{/name}","releases_url":"https://api.github.com/repos/catree/opencv/releases{/id}","deployments_url":"https://api.github.com/repos/catree/opencv/deployments","created_at":"2016-07-17T05:38:51Z","updated_at":"2016-07-17T05:39:04Z","pushed_at":"2017-10-13T17:49:35Z","git_url":"git://github.com/catree/opencv.git","ssh_url":"git@github.com:catree/opencv.git","clone_url":"https://github.com/catree/opencv.git","svn_url":"https://github.com/catree/opencv","homepage":"opencv.org","size":438631,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":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":"master"}},"base":{"label":"opencv:master","ref":"master","sha":"5ed354221cff00217269a31fb1de3b46d19dff2f","user":{"login":"opencv","id":5009934,"avatar_url":"https://avatars3.githubusercontent.com/u/5009934?v=4","gravatar_id":"","url":"https://api.github.com/users/opencv","html_url":"https://github.com/opencv","followers_url":"https://api.github.com/users/opencv/followers","following_url":"https://api.github.com/users/opencv/following{/other_user}","gists_url":"https://api.github.com/users/opencv/gists{/gist_id}","starred_url":"https://api.github.com/users/opencv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opencv/subscriptions","organizations_url":"https://api.github.com/users/opencv/orgs","repos_url":"https://api.github.com/users/opencv/repos","events_url":"https://api.github.com/users/opencv/events{/privacy}","received_events_url":"https://api.github.com/users/opencv/received_events","type":"Organization","site_admin":false},"repo":{"id":5108051,"name":"opencv","full_name":"opencv/opencv","owner":{"login":"opencv","id":5009934,"avatar_url":"https://avatars3.githubusercontent.com/u/5009934?v=4","gravatar_id":"","url":"https://api.github.com/users/opencv","html_url":"https://github.com/opencv","followers_url":"https://api.github.com/users/opencv/followers","following_url":"https://api.github.com/users/opencv/following{/other_user}","gists_url":"https://api.github.com/users/opencv/gists{/gist_id}","starred_url":"https://api.github.com/users/opencv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opencv/subscriptions","organizations_url":"https://api.github.com/users/opencv/orgs","repos_url":"https://api.github.com/users/opencv/repos","events_url":"https://api.github.com/users/opencv/events{/privacy}","received_events_url":"https://api.github.com/users/opencv/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/opencv/opencv","description":"Open Source Computer Vision Library","fork":false,"url":"https://api.github.com/repos/opencv/opencv","forks_url":"https://api.github.com/repos/opencv/opencv/forks","keys_url":"https://api.github.com/repos/opencv/opencv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/opencv/opencv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/opencv/opencv/teams","hooks_url":"https://api.github.com/repos/opencv/opencv/hooks","issue_events_url":"https://api.github.com/repos/opencv/opencv/issues/events{/number}","events_url":"https://api.github.com/repos/opencv/opencv/events","assignees_url":"https://api.github.com/repos/opencv/opencv/assignees{/user}","branches_url":"https://api.github.com/repos/opencv/opencv/branches{/branch}","tags_url":"https://api.github.com/repos/opencv/opencv/tags","blobs_url":"https://api.github.com/repos/opencv/opencv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/opencv/opencv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/opencv/opencv/git/refs{/sha}","trees_url":"https://api.github.com/repos/opencv/opencv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/opencv/opencv/statuses/{sha}","languages_url":"https://api.github.com/repos/opencv/opencv/languages","stargazers_url":"https://api.github.com/repos/opencv/opencv/stargazers","contributors_url":"https://api.github.com/repos/opencv/opencv/contributors","subscribers_url":"https://api.github.com/repos/opencv/opencv/subscribers","subscription_url":"https://api.github.com/repos/opencv/opencv/subscription","commits_url":"https://api.github.com/repos/opencv/opencv/commits{/sha}","git_commits_url":"https://api.github.com/repos/opencv/opencv/git/commits{/sha}","comments_url":"https://api.github.com/repos/opencv/opencv/comments{/number}","issue_comment_url":"https://api.github.com/repos/opencv/opencv/issues/comments{/number}","contents_url":"https://api.github.com/repos/opencv/opencv/contents/{+path}","compare_url":"https://api.github.com/repos/opencv/opencv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/opencv/opencv/merges","archive_url":"https://api.github.com/repos/opencv/opencv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/opencv/opencv/downloads","issues_url":"https://api.github.com/repos/opencv/opencv/issues{/number}","pulls_url":"https://api.github.com/repos/opencv/opencv/pulls{/number}","milestones_url":"https://api.github.com/repos/opencv/opencv/milestones{/number}","notifications_url":"https://api.github.com/repos/opencv/opencv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/opencv/opencv/labels{/name}","releases_url":"https://api.github.com/repos/opencv/opencv/releases{/id}","deployments_url":"https://api.github.com/repos/opencv/opencv/deployments","created_at":"2012-07-19T09:40:17Z","updated_at":"2017-10-13T17:03:53Z","pushed_at":"2017-10-13T16:27:37Z","git_url":"git://github.com/opencv/opencv.git","ssh_url":"git@github.com:opencv/opencv.git","clone_url":"https://github.com/opencv/opencv.git","svn_url":"https://github.com/opencv/opencv","homepage":"opencv.org","size":445264,"stargazers_count":18833,"watchers_count":18833,"language":"C++","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13959,"mirror_url":null,"open_issues_count":1259,"forks":13959,"open_issues":1259,"watchers":18833,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/opencv/opencv/pulls/9853"},"html":{"href":"https://github.com/opencv/opencv/pull/9853"},"issue":{"href":"https://api.github.com/repos/opencv/opencv/issues/9853"},"comments":{"href":"https://api.github.com/repos/opencv/opencv/issues/9853/comments"},"review_comments":{"href":"https://api.github.com/repos/opencv/opencv/pulls/9853/comments"},"review_comment":{"href":"https://api.github.com/repos/opencv/opencv/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/opencv/opencv/pulls/9853/commits"},"statuses":{"href":"https://api.github.com/repos/opencv/opencv/statuses/96ecc2fee2c32f23c697762faf772cd8a55864bd"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":6,"deletions":7,"changed_files":3}}
{"actor":{"display_login":"catree"}}