{"action":"closed","number":1,"pull_request":{"url":"https://api.github.com/repos/stevevanhooser/paramiko/pulls/1","id":58218587,"html_url":"https://github.com/stevevanhooser/paramiko/pull/1","diff_url":"https://github.com/stevevanhooser/paramiko/pull/1.diff","patch_url":"https://github.com/stevevanhooser/paramiko/pull/1.patch","issue_url":"https://api.github.com/repos/stevevanhooser/paramiko/issues/1","number":1,"state":"closed","locked":false,"title":"Sftp file backwardscompatibility","user":{"login":"stevevanhooser","id":1894285,"avatar_url":"https://avatars.githubusercontent.com/u/1894285?v=3","gravatar_id":"","url":"https://api.github.com/users/stevevanhooser","html_url":"https://github.com/stevevanhooser","followers_url":"https://api.github.com/users/stevevanhooser/followers","following_url":"https://api.github.com/users/stevevanhooser/following{/other_user}","gists_url":"https://api.github.com/users/stevevanhooser/gists{/gist_id}","starred_url":"https://api.github.com/users/stevevanhooser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevevanhooser/subscriptions","organizations_url":"https://api.github.com/users/stevevanhooser/orgs","repos_url":"https://api.github.com/users/stevevanhooser/repos","events_url":"https://api.github.com/users/stevevanhooser/events{/privacy}","received_events_url":"https://api.github.com/users/stevevanhooser/received_events","type":"User","site_admin":false},"body":"This changes paramiko.sftp_file.prefetch so that it can accept 1 or 2 arguments for backwards compatibility.\r\n\r\nIn versions 1.5 - 1.15, paramiko.sftp_file.prefetch accepted only 1 argument (self), and it was assumed that the entire file would be read in. In the original 1.16 version, the file_size to be read in was obligated (one could not use a default argument). This caused a lack of backwards compatibility with older programs (such as bzr). Now the second input argument is optional; if it is not provided, then the file_size is read directly from the file. Otherwise, the user-provided input argument is used for the file_size.\r\n","created_at":"2016-02-03T23:28:20Z","updated_at":"2016-02-03T23:28:29Z","closed_at":"2016-02-03T23:28:29Z","merged_at":"2016-02-03T23:28:29Z","merge_commit_sha":"ea364b19c22355387f259f7f137b8d900fba179b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/stevevanhooser/paramiko/pulls/1/commits","review_comments_url":"https://api.github.com/repos/stevevanhooser/paramiko/pulls/1/comments","review_comment_url":"https://api.github.com/repos/stevevanhooser/paramiko/pulls/comments{/number}","comments_url":"https://api.github.com/repos/stevevanhooser/paramiko/issues/1/comments","statuses_url":"https://api.github.com/repos/stevevanhooser/paramiko/statuses/12de3ff3cea3c2fec41acce1b76e308aae2834d3","head":{"label":"stevevanhooser:sftp_file-backwardscompatibility","ref":"sftp_file-backwardscompatibility","sha":"12de3ff3cea3c2fec41acce1b76e308aae2834d3","user":{"login":"stevevanhooser","id":1894285,"avatar_url":"https://avatars.githubusercontent.com/u/1894285?v=3","gravatar_id":"","url":"https://api.github.com/users/stevevanhooser","html_url":"https://github.com/stevevanhooser","followers_url":"https://api.github.com/users/stevevanhooser/followers","following_url":"https://api.github.com/users/stevevanhooser/following{/other_user}","gists_url":"https://api.github.com/users/stevevanhooser/gists{/gist_id}","starred_url":"https://api.github.com/users/stevevanhooser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevevanhooser/subscriptions","organizations_url":"https://api.github.com/users/stevevanhooser/orgs","repos_url":"https://api.github.com/users/stevevanhooser/repos","events_url":"https://api.github.com/users/stevevanhooser/events{/privacy}","received_events_url":"https://api.github.com/users/stevevanhooser/received_events","type":"User","site_admin":false},"repo":{"id":51034789,"name":"paramiko","full_name":"stevevanhooser/paramiko","owner":{"login":"stevevanhooser","id":1894285,"avatar_url":"https://avatars.githubusercontent.com/u/1894285?v=3","gravatar_id":"","url":"https://api.github.com/users/stevevanhooser","html_url":"https://github.com/stevevanhooser","followers_url":"https://api.github.com/users/stevevanhooser/followers","following_url":"https://api.github.com/users/stevevanhooser/following{/other_user}","gists_url":"https://api.github.com/users/stevevanhooser/gists{/gist_id}","starred_url":"https://api.github.com/users/stevevanhooser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevevanhooser/subscriptions","organizations_url":"https://api.github.com/users/stevevanhooser/orgs","repos_url":"https://api.github.com/users/stevevanhooser/repos","events_url":"https://api.github.com/users/stevevanhooser/events{/privacy}","received_events_url":"https://api.github.com/users/stevevanhooser/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stevevanhooser/paramiko","description":"Native Python SSHv2 protocol library","fork":true,"url":"https://api.github.com/repos/stevevanhooser/paramiko","forks_url":"https://api.github.com/repos/stevevanhooser/paramiko/forks","keys_url":"https://api.github.com/repos/stevevanhooser/paramiko/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stevevanhooser/paramiko/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stevevanhooser/paramiko/teams","hooks_url":"https://api.github.com/repos/stevevanhooser/paramiko/hooks","issue_events_url":"https://api.github.com/repos/stevevanhooser/paramiko/issues/events{/number}","events_url":"https://api.github.com/repos/stevevanhooser/paramiko/events","assignees_url":"https://api.github.com/repos/stevevanhooser/paramiko/assignees{/user}","branches_url":"https://api.github.com/repos/stevevanhooser/paramiko/branches{/branch}","tags_url":"https://api.github.com/repos/stevevanhooser/paramiko/tags","blobs_url":"https://api.github.com/repos/stevevanhooser/paramiko/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stevevanhooser/paramiko/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stevevanhooser/paramiko/git/refs{/sha}","trees_url":"https://api.github.com/repos/stevevanhooser/paramiko/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stevevanhooser/paramiko/statuses/{sha}","languages_url":"https://api.github.com/repos/stevevanhooser/paramiko/languages","stargazers_url":"https://api.github.com/repos/stevevanhooser/paramiko/stargazers","contributors_url":"https://api.github.com/repos/stevevanhooser/paramiko/contributors","subscribers_url":"https://api.github.com/repos/stevevanhooser/paramiko/subscribers","subscription_url":"https://api.github.com/repos/stevevanhooser/paramiko/subscription","commits_url":"https://api.github.com/repos/stevevanhooser/paramiko/commits{/sha}","git_commits_url":"https://api.github.com/repos/stevevanhooser/paramiko/git/commits{/sha}","comments_url":"https://api.github.com/repos/stevevanhooser/paramiko/comments{/number}","issue_comment_url":"https://api.github.com/repos/stevevanhooser/paramiko/issues/comments{/number}","contents_url":"https://api.github.com/repos/stevevanhooser/paramiko/contents/{+path}","compare_url":"https://api.github.com/repos/stevevanhooser/paramiko/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stevevanhooser/paramiko/merges","archive_url":"https://api.github.com/repos/stevevanhooser/paramiko/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stevevanhooser/paramiko/downloads","issues_url":"https://api.github.com/repos/stevevanhooser/paramiko/issues{/number}","pulls_url":"https://api.github.com/repos/stevevanhooser/paramiko/pulls{/number}","milestones_url":"https://api.github.com/repos/stevevanhooser/paramiko/milestones{/number}","notifications_url":"https://api.github.com/repos/stevevanhooser/paramiko/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stevevanhooser/paramiko/labels{/name}","releases_url":"https://api.github.com/repos/stevevanhooser/paramiko/releases{/id}","deployments_url":"https://api.github.com/repos/stevevanhooser/paramiko/deployments","created_at":"2016-02-03T22:19:51Z","updated_at":"2016-02-03T22:19:53Z","pushed_at":"2016-02-03T23:28:29Z","git_url":"git://github.com/stevevanhooser/paramiko.git","ssh_url":"git@github.com:stevevanhooser/paramiko.git","clone_url":"https://github.com/stevevanhooser/paramiko.git","svn_url":"https://github.com/stevevanhooser/paramiko","homepage":"","size":3936,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"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":"stevevanhooser:master","ref":"master","sha":"e3b11da1ff61655838e7dd75735685adfa30bc64","user":{"login":"stevevanhooser","id":1894285,"avatar_url":"https://avatars.githubusercontent.com/u/1894285?v=3","gravatar_id":"","url":"https://api.github.com/users/stevevanhooser","html_url":"https://github.com/stevevanhooser","followers_url":"https://api.github.com/users/stevevanhooser/followers","following_url":"https://api.github.com/users/stevevanhooser/following{/other_user}","gists_url":"https://api.github.com/users/stevevanhooser/gists{/gist_id}","starred_url":"https://api.github.com/users/stevevanhooser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevevanhooser/subscriptions","organizations_url":"https://api.github.com/users/stevevanhooser/orgs","repos_url":"https://api.github.com/users/stevevanhooser/repos","events_url":"https://api.github.com/users/stevevanhooser/events{/privacy}","received_events_url":"https://api.github.com/users/stevevanhooser/received_events","type":"User","site_admin":false},"repo":{"id":51034789,"name":"paramiko","full_name":"stevevanhooser/paramiko","owner":{"login":"stevevanhooser","id":1894285,"avatar_url":"https://avatars.githubusercontent.com/u/1894285?v=3","gravatar_id":"","url":"https://api.github.com/users/stevevanhooser","html_url":"https://github.com/stevevanhooser","followers_url":"https://api.github.com/users/stevevanhooser/followers","following_url":"https://api.github.com/users/stevevanhooser/following{/other_user}","gists_url":"https://api.github.com/users/stevevanhooser/gists{/gist_id}","starred_url":"https://api.github.com/users/stevevanhooser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevevanhooser/subscriptions","organizations_url":"https://api.github.com/users/stevevanhooser/orgs","repos_url":"https://api.github.com/users/stevevanhooser/repos","events_url":"https://api.github.com/users/stevevanhooser/events{/privacy}","received_events_url":"https://api.github.com/users/stevevanhooser/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stevevanhooser/paramiko","description":"Native Python SSHv2 protocol library","fork":true,"url":"https://api.github.com/repos/stevevanhooser/paramiko","forks_url":"https://api.github.com/repos/stevevanhooser/paramiko/forks","keys_url":"https://api.github.com/repos/stevevanhooser/paramiko/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stevevanhooser/paramiko/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stevevanhooser/paramiko/teams","hooks_url":"https://api.github.com/repos/stevevanhooser/paramiko/hooks","issue_events_url":"https://api.github.com/repos/stevevanhooser/paramiko/issues/events{/number}","events_url":"https://api.github.com/repos/stevevanhooser/paramiko/events","assignees_url":"https://api.github.com/repos/stevevanhooser/paramiko/assignees{/user}","branches_url":"https://api.github.com/repos/stevevanhooser/paramiko/branches{/branch}","tags_url":"https://api.github.com/repos/stevevanhooser/paramiko/tags","blobs_url":"https://api.github.com/repos/stevevanhooser/paramiko/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stevevanhooser/paramiko/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stevevanhooser/paramiko/git/refs{/sha}","trees_url":"https://api.github.com/repos/stevevanhooser/paramiko/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stevevanhooser/paramiko/statuses/{sha}","languages_url":"https://api.github.com/repos/stevevanhooser/paramiko/languages","stargazers_url":"https://api.github.com/repos/stevevanhooser/paramiko/stargazers","contributors_url":"https://api.github.com/repos/stevevanhooser/paramiko/contributors","subscribers_url":"https://api.github.com/repos/stevevanhooser/paramiko/subscribers","subscription_url":"https://api.github.com/repos/stevevanhooser/paramiko/subscription","commits_url":"https://api.github.com/repos/stevevanhooser/paramiko/commits{/sha}","git_commits_url":"https://api.github.com/repos/stevevanhooser/paramiko/git/commits{/sha}","comments_url":"https://api.github.com/repos/stevevanhooser/paramiko/comments{/number}","issue_comment_url":"https://api.github.com/repos/stevevanhooser/paramiko/issues/comments{/number}","contents_url":"https://api.github.com/repos/stevevanhooser/paramiko/contents/{+path}","compare_url":"https://api.github.com/repos/stevevanhooser/paramiko/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stevevanhooser/paramiko/merges","archive_url":"https://api.github.com/repos/stevevanhooser/paramiko/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stevevanhooser/paramiko/downloads","issues_url":"https://api.github.com/repos/stevevanhooser/paramiko/issues{/number}","pulls_url":"https://api.github.com/repos/stevevanhooser/paramiko/pulls{/number}","milestones_url":"https://api.github.com/repos/stevevanhooser/paramiko/milestones{/number}","notifications_url":"https://api.github.com/repos/stevevanhooser/paramiko/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stevevanhooser/paramiko/labels{/name}","releases_url":"https://api.github.com/repos/stevevanhooser/paramiko/releases{/id}","deployments_url":"https://api.github.com/repos/stevevanhooser/paramiko/deployments","created_at":"2016-02-03T22:19:51Z","updated_at":"2016-02-03T22:19:53Z","pushed_at":"2016-02-03T23:28:29Z","git_url":"git://github.com/stevevanhooser/paramiko.git","ssh_url":"git@github.com:stevevanhooser/paramiko.git","clone_url":"https://github.com/stevevanhooser/paramiko.git","svn_url":"https://github.com/stevevanhooser/paramiko","homepage":"","size":3936,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"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"}},"_links":{"self":{"href":"https://api.github.com/repos/stevevanhooser/paramiko/pulls/1"},"html":{"href":"https://github.com/stevevanhooser/paramiko/pull/1"},"issue":{"href":"https://api.github.com/repos/stevevanhooser/paramiko/issues/1"},"comments":{"href":"https://api.github.com/repos/stevevanhooser/paramiko/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/stevevanhooser/paramiko/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/stevevanhooser/paramiko/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/stevevanhooser/paramiko/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/stevevanhooser/paramiko/statuses/12de3ff3cea3c2fec41acce1b76e308aae2834d3"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"stevevanhooser","id":1894285,"avatar_url":"https://avatars.githubusercontent.com/u/1894285?v=3","gravatar_id":"","url":"https://api.github.com/users/stevevanhooser","html_url":"https://github.com/stevevanhooser","followers_url":"https://api.github.com/users/stevevanhooser/followers","following_url":"https://api.github.com/users/stevevanhooser/following{/other_user}","gists_url":"https://api.github.com/users/stevevanhooser/gists{/gist_id}","starred_url":"https://api.github.com/users/stevevanhooser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevevanhooser/subscriptions","organizations_url":"https://api.github.com/users/stevevanhooser/orgs","repos_url":"https://api.github.com/users/stevevanhooser/repos","events_url":"https://api.github.com/users/stevevanhooser/events{/privacy}","received_events_url":"https://api.github.com/users/stevevanhooser/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":3,"additions":7,"deletions":1,"changed_files":2}}