{"action":"opened","number":309,"pull_request":{"url":"https://api.github.com/repos/joblib/joblib/pulls/309","id":58306119,"html_url":"https://github.com/joblib/joblib/pull/309","diff_url":"https://github.com/joblib/joblib/pull/309.diff","patch_url":"https://github.com/joblib/joblib/pull/309.patch","issue_url":"https://api.github.com/repos/joblib/joblib/issues/309","number":309,"state":"open","locked":false,"title":"[MRG] fix deprecation warning in hashing.py","user":{"login":"aabadie","id":1375137,"avatar_url":"https://avatars.githubusercontent.com/u/1375137?v=3","gravatar_id":"","url":"https://api.github.com/users/aabadie","html_url":"https://github.com/aabadie","followers_url":"https://api.github.com/users/aabadie/followers","following_url":"https://api.github.com/users/aabadie/following{/other_user}","gists_url":"https://api.github.com/users/aabadie/gists{/gist_id}","starred_url":"https://api.github.com/users/aabadie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aabadie/subscriptions","organizations_url":"https://api.github.com/users/aabadie/orgs","repos_url":"https://api.github.com/users/aabadie/repos","events_url":"https://api.github.com/users/aabadie/events{/privacy}","received_events_url":"https://api.github.com/users/aabadie/received_events","type":"User","site_admin":false},"body":"Should fix #308 \r\n\r\nThis just applied the solution proposed in the warning message. Maybe there are other solutions.\r\nI tested this with the following snippet and the warning seems to be gone (based  on python 2.7):\r\n```python\r\nimport warnings, joblib\r\nimport numpy as np\r\n\r\na = np.ones((10,10,10,10), order='F')\r\nwith warnings.catch_warnings(record=True) as w:\r\n    warnings.simplefilter(\"always\")\r\n    joblib.hash(a)\r\n    print(len(w))\r\n    if len(w):\r\n        print(str(w[-1].message))\r\n```","created_at":"2016-02-04T15:54:05Z","updated_at":"2016-02-04T15:54:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/joblib/joblib/pulls/309/commits","review_comments_url":"https://api.github.com/repos/joblib/joblib/pulls/309/comments","review_comment_url":"https://api.github.com/repos/joblib/joblib/pulls/comments{/number}","comments_url":"https://api.github.com/repos/joblib/joblib/issues/309/comments","statuses_url":"https://api.github.com/repos/joblib/joblib/statuses/e58ba36431eaf914c5dd2b2b52f9cc558510264b","head":{"label":"aabadie:fix_view_deprecation_warning","ref":"fix_view_deprecation_warning","sha":"e58ba36431eaf914c5dd2b2b52f9cc558510264b","user":{"login":"aabadie","id":1375137,"avatar_url":"https://avatars.githubusercontent.com/u/1375137?v=3","gravatar_id":"","url":"https://api.github.com/users/aabadie","html_url":"https://github.com/aabadie","followers_url":"https://api.github.com/users/aabadie/followers","following_url":"https://api.github.com/users/aabadie/following{/other_user}","gists_url":"https://api.github.com/users/aabadie/gists{/gist_id}","starred_url":"https://api.github.com/users/aabadie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aabadie/subscriptions","organizations_url":"https://api.github.com/users/aabadie/orgs","repos_url":"https://api.github.com/users/aabadie/repos","events_url":"https://api.github.com/users/aabadie/events{/privacy}","received_events_url":"https://api.github.com/users/aabadie/received_events","type":"User","site_admin":false},"repo":{"id":41858733,"name":"joblib","full_name":"aabadie/joblib","owner":{"login":"aabadie","id":1375137,"avatar_url":"https://avatars.githubusercontent.com/u/1375137?v=3","gravatar_id":"","url":"https://api.github.com/users/aabadie","html_url":"https://github.com/aabadie","followers_url":"https://api.github.com/users/aabadie/followers","following_url":"https://api.github.com/users/aabadie/following{/other_user}","gists_url":"https://api.github.com/users/aabadie/gists{/gist_id}","starred_url":"https://api.github.com/users/aabadie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aabadie/subscriptions","organizations_url":"https://api.github.com/users/aabadie/orgs","repos_url":"https://api.github.com/users/aabadie/repos","events_url":"https://api.github.com/users/aabadie/events{/privacy}","received_events_url":"https://api.github.com/users/aabadie/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aabadie/joblib","description":"Python function as pipeline jobs.","fork":true,"url":"https://api.github.com/repos/aabadie/joblib","forks_url":"https://api.github.com/repos/aabadie/joblib/forks","keys_url":"https://api.github.com/repos/aabadie/joblib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aabadie/joblib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aabadie/joblib/teams","hooks_url":"https://api.github.com/repos/aabadie/joblib/hooks","issue_events_url":"https://api.github.com/repos/aabadie/joblib/issues/events{/number}","events_url":"https://api.github.com/repos/aabadie/joblib/events","assignees_url":"https://api.github.com/repos/aabadie/joblib/assignees{/user}","branches_url":"https://api.github.com/repos/aabadie/joblib/branches{/branch}","tags_url":"https://api.github.com/repos/aabadie/joblib/tags","blobs_url":"https://api.github.com/repos/aabadie/joblib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aabadie/joblib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aabadie/joblib/git/refs{/sha}","trees_url":"https://api.github.com/repos/aabadie/joblib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aabadie/joblib/statuses/{sha}","languages_url":"https://api.github.com/repos/aabadie/joblib/languages","stargazers_url":"https://api.github.com/repos/aabadie/joblib/stargazers","contributors_url":"https://api.github.com/repos/aabadie/joblib/contributors","subscribers_url":"https://api.github.com/repos/aabadie/joblib/subscribers","subscription_url":"https://api.github.com/repos/aabadie/joblib/subscription","commits_url":"https://api.github.com/repos/aabadie/joblib/commits{/sha}","git_commits_url":"https://api.github.com/repos/aabadie/joblib/git/commits{/sha}","comments_url":"https://api.github.com/repos/aabadie/joblib/comments{/number}","issue_comment_url":"https://api.github.com/repos/aabadie/joblib/issues/comments{/number}","contents_url":"https://api.github.com/repos/aabadie/joblib/contents/{+path}","compare_url":"https://api.github.com/repos/aabadie/joblib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aabadie/joblib/merges","archive_url":"https://api.github.com/repos/aabadie/joblib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aabadie/joblib/downloads","issues_url":"https://api.github.com/repos/aabadie/joblib/issues{/number}","pulls_url":"https://api.github.com/repos/aabadie/joblib/pulls{/number}","milestones_url":"https://api.github.com/repos/aabadie/joblib/milestones{/number}","notifications_url":"https://api.github.com/repos/aabadie/joblib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aabadie/joblib/labels{/name}","releases_url":"https://api.github.com/repos/aabadie/joblib/releases{/id}","deployments_url":"https://api.github.com/repos/aabadie/joblib/deployments","created_at":"2015-09-03T12:33:21Z","updated_at":"2016-01-14T12:17:38Z","pushed_at":"2016-02-04T15:39:51Z","git_url":"git://github.com/aabadie/joblib.git","ssh_url":"git@github.com:aabadie/joblib.git","clone_url":"https://github.com/aabadie/joblib.git","svn_url":"https://github.com/aabadie/joblib","homepage":"http://packages.python.org/joblib/","size":2508,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"joblib:master","ref":"master","sha":"18fb5f34d9226699995d4db0148bc96cf662c519","user":{"login":"joblib","id":332661,"avatar_url":"https://avatars.githubusercontent.com/u/332661?v=3","gravatar_id":"","url":"https://api.github.com/users/joblib","html_url":"https://github.com/joblib","followers_url":"https://api.github.com/users/joblib/followers","following_url":"https://api.github.com/users/joblib/following{/other_user}","gists_url":"https://api.github.com/users/joblib/gists{/gist_id}","starred_url":"https://api.github.com/users/joblib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joblib/subscriptions","organizations_url":"https://api.github.com/users/joblib/orgs","repos_url":"https://api.github.com/users/joblib/repos","events_url":"https://api.github.com/users/joblib/events{/privacy}","received_events_url":"https://api.github.com/users/joblib/received_events","type":"Organization","site_admin":false},"repo":{"id":654608,"name":"joblib","full_name":"joblib/joblib","owner":{"login":"joblib","id":332661,"avatar_url":"https://avatars.githubusercontent.com/u/332661?v=3","gravatar_id":"","url":"https://api.github.com/users/joblib","html_url":"https://github.com/joblib","followers_url":"https://api.github.com/users/joblib/followers","following_url":"https://api.github.com/users/joblib/following{/other_user}","gists_url":"https://api.github.com/users/joblib/gists{/gist_id}","starred_url":"https://api.github.com/users/joblib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joblib/subscriptions","organizations_url":"https://api.github.com/users/joblib/orgs","repos_url":"https://api.github.com/users/joblib/repos","events_url":"https://api.github.com/users/joblib/events{/privacy}","received_events_url":"https://api.github.com/users/joblib/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/joblib/joblib","description":"Python function as pipeline jobs.","fork":false,"url":"https://api.github.com/repos/joblib/joblib","forks_url":"https://api.github.com/repos/joblib/joblib/forks","keys_url":"https://api.github.com/repos/joblib/joblib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joblib/joblib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joblib/joblib/teams","hooks_url":"https://api.github.com/repos/joblib/joblib/hooks","issue_events_url":"https://api.github.com/repos/joblib/joblib/issues/events{/number}","events_url":"https://api.github.com/repos/joblib/joblib/events","assignees_url":"https://api.github.com/repos/joblib/joblib/assignees{/user}","branches_url":"https://api.github.com/repos/joblib/joblib/branches{/branch}","tags_url":"https://api.github.com/repos/joblib/joblib/tags","blobs_url":"https://api.github.com/repos/joblib/joblib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joblib/joblib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joblib/joblib/git/refs{/sha}","trees_url":"https://api.github.com/repos/joblib/joblib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joblib/joblib/statuses/{sha}","languages_url":"https://api.github.com/repos/joblib/joblib/languages","stargazers_url":"https://api.github.com/repos/joblib/joblib/stargazers","contributors_url":"https://api.github.com/repos/joblib/joblib/contributors","subscribers_url":"https://api.github.com/repos/joblib/joblib/subscribers","subscription_url":"https://api.github.com/repos/joblib/joblib/subscription","commits_url":"https://api.github.com/repos/joblib/joblib/commits{/sha}","git_commits_url":"https://api.github.com/repos/joblib/joblib/git/commits{/sha}","comments_url":"https://api.github.com/repos/joblib/joblib/comments{/number}","issue_comment_url":"https://api.github.com/repos/joblib/joblib/issues/comments{/number}","contents_url":"https://api.github.com/repos/joblib/joblib/contents/{+path}","compare_url":"https://api.github.com/repos/joblib/joblib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joblib/joblib/merges","archive_url":"https://api.github.com/repos/joblib/joblib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joblib/joblib/downloads","issues_url":"https://api.github.com/repos/joblib/joblib/issues{/number}","pulls_url":"https://api.github.com/repos/joblib/joblib/pulls{/number}","milestones_url":"https://api.github.com/repos/joblib/joblib/milestones{/number}","notifications_url":"https://api.github.com/repos/joblib/joblib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joblib/joblib/labels{/name}","releases_url":"https://api.github.com/repos/joblib/joblib/releases{/id}","deployments_url":"https://api.github.com/repos/joblib/joblib/deployments","created_at":"2010-05-07T06:48:26Z","updated_at":"2016-01-30T21:41:47Z","pushed_at":"2016-02-04T15:08:51Z","git_url":"git://github.com/joblib/joblib.git","ssh_url":"git@github.com:joblib/joblib.git","clone_url":"https://github.com/joblib/joblib.git","svn_url":"https://github.com/joblib/joblib","homepage":"http://packages.python.org/joblib/","size":3284,"stargazers_count":624,"watchers_count":624,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":102,"mirror_url":null,"open_issues_count":82,"forks":102,"open_issues":82,"watchers":624,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/joblib/joblib/pulls/309"},"html":{"href":"https://github.com/joblib/joblib/pull/309"},"issue":{"href":"https://api.github.com/repos/joblib/joblib/issues/309"},"comments":{"href":"https://api.github.com/repos/joblib/joblib/issues/309/comments"},"review_comments":{"href":"https://api.github.com/repos/joblib/joblib/pulls/309/comments"},"review_comment":{"href":"https://api.github.com/repos/joblib/joblib/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/joblib/joblib/pulls/309/commits"},"statuses":{"href":"https://api.github.com/repos/joblib/joblib/statuses/e58ba36431eaf914c5dd2b2b52f9cc558510264b"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":4,"deletions":1,"changed_files":1}}