{"action":"created","comment":{"url":"https://api.github.com/repos/qiniu/python-sdk/pulls/comments/29021435","id":29021435,"diff_hunk":"@@ -72,7 +72,7 @@ def _form_put(up_token, key, data, params, mime_type, crc, is_file=False, progre\n     if r is None and info.need_retry():\n         if info.connect_failed:\n             url = 'http://' + config.UPBACKUP_HOST + '/'\n-        if is_file:\n+        if hasattr(data, 'seek'):\n             data.seek(0)","path":"qiniu/services/storage/uploader.py","position":6,"original_position":6,"commit_id":"e66f738104d5119205ac75a3170cd62f7d4154cf","original_commit_id":"e66f738104d5119205ac75a3170cd62f7d4154cf","user":{"login":"SunRunAway","id":867381,"avatar_url":"https://avatars.githubusercontent.com/u/867381?v=3","gravatar_id":"","url":"https://api.github.com/users/SunRunAway","html_url":"https://github.com/SunRunAway","followers_url":"https://api.github.com/users/SunRunAway/followers","following_url":"https://api.github.com/users/SunRunAway/following{/other_user}","gists_url":"https://api.github.com/users/SunRunAway/gists{/gist_id}","starred_url":"https://api.github.com/users/SunRunAway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SunRunAway/subscriptions","organizations_url":"https://api.github.com/users/SunRunAway/orgs","repos_url":"https://api.github.com/users/SunRunAway/repos","events_url":"https://api.github.com/users/SunRunAway/events{/privacy}","received_events_url":"https://api.github.com/users/SunRunAway/received_events","type":"User","site_admin":false},"body":"is_file 这个变量没用了","created_at":"2015-04-24T03:16:50Z","updated_at":"2015-04-24T03:16:50Z","html_url":"https://github.com/qiniu/python-sdk/pull/164#discussion_r29021435","pull_request_url":"https://api.github.com/repos/qiniu/python-sdk/pulls/164","_links":{"self":{"href":"https://api.github.com/repos/qiniu/python-sdk/pulls/comments/29021435"},"html":{"href":"https://github.com/qiniu/python-sdk/pull/164#discussion_r29021435"},"pull_request":{"href":"https://api.github.com/repos/qiniu/python-sdk/pulls/164"}}},"pull_request":{"url":"https://api.github.com/repos/qiniu/python-sdk/pulls/164","id":33976422,"html_url":"https://github.com/qiniu/python-sdk/pull/164","diff_url":"https://github.com/qiniu/python-sdk/pull/164.diff","patch_url":"https://github.com/qiniu/python-sdk/pull/164.patch","issue_url":"https://api.github.com/repos/qiniu/python-sdk/issues/164","number":164,"state":"open","locked":false,"title":"修改put_data重试为上传为空文件","user":{"login":"forrest-mao","id":4973955,"avatar_url":"https://avatars.githubusercontent.com/u/4973955?v=3","gravatar_id":"","url":"https://api.github.com/users/forrest-mao","html_url":"https://github.com/forrest-mao","followers_url":"https://api.github.com/users/forrest-mao/followers","following_url":"https://api.github.com/users/forrest-mao/following{/other_user}","gists_url":"https://api.github.com/users/forrest-mao/gists{/gist_id}","starred_url":"https://api.github.com/users/forrest-mao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forrest-mao/subscriptions","organizations_url":"https://api.github.com/users/forrest-mao/orgs","repos_url":"https://api.github.com/users/forrest-mao/repos","events_url":"https://api.github.com/users/forrest-mao/events{/privacy}","received_events_url":"https://api.github.com/users/forrest-mao/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-23T17:10:45Z","updated_at":"2015-04-24T03:16:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bc201e4b3f5ec893f7cbbe0bb8ed4f14409f6021","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/qiniu/python-sdk/pulls/164/commits","review_comments_url":"https://api.github.com/repos/qiniu/python-sdk/pulls/164/comments","review_comment_url":"https://api.github.com/repos/qiniu/python-sdk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/qiniu/python-sdk/issues/164/comments","statuses_url":"https://api.github.com/repos/qiniu/python-sdk/statuses/e66f738104d5119205ac75a3170cd62f7d4154cf","head":{"label":"forrest-mao:fix_retry_empty","ref":"fix_retry_empty","sha":"e66f738104d5119205ac75a3170cd62f7d4154cf","user":{"login":"forrest-mao","id":4973955,"avatar_url":"https://avatars.githubusercontent.com/u/4973955?v=3","gravatar_id":"","url":"https://api.github.com/users/forrest-mao","html_url":"https://github.com/forrest-mao","followers_url":"https://api.github.com/users/forrest-mao/followers","following_url":"https://api.github.com/users/forrest-mao/following{/other_user}","gists_url":"https://api.github.com/users/forrest-mao/gists{/gist_id}","starred_url":"https://api.github.com/users/forrest-mao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forrest-mao/subscriptions","organizations_url":"https://api.github.com/users/forrest-mao/orgs","repos_url":"https://api.github.com/users/forrest-mao/repos","events_url":"https://api.github.com/users/forrest-mao/events{/privacy}","received_events_url":"https://api.github.com/users/forrest-mao/received_events","type":"User","site_admin":false},"repo":{"id":27179411,"name":"python-sdk","full_name":"forrest-mao/python-sdk","owner":{"login":"forrest-mao","id":4973955,"avatar_url":"https://avatars.githubusercontent.com/u/4973955?v=3","gravatar_id":"","url":"https://api.github.com/users/forrest-mao","html_url":"https://github.com/forrest-mao","followers_url":"https://api.github.com/users/forrest-mao/followers","following_url":"https://api.github.com/users/forrest-mao/following{/other_user}","gists_url":"https://api.github.com/users/forrest-mao/gists{/gist_id}","starred_url":"https://api.github.com/users/forrest-mao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forrest-mao/subscriptions","organizations_url":"https://api.github.com/users/forrest-mao/orgs","repos_url":"https://api.github.com/users/forrest-mao/repos","events_url":"https://api.github.com/users/forrest-mao/events{/privacy}","received_events_url":"https://api.github.com/users/forrest-mao/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/forrest-mao/python-sdk","description":"Qiniu Resource (Cloud) Storage SDK for Python","fork":true,"url":"https://api.github.com/repos/forrest-mao/python-sdk","forks_url":"https://api.github.com/repos/forrest-mao/python-sdk/forks","keys_url":"https://api.github.com/repos/forrest-mao/python-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/forrest-mao/python-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/forrest-mao/python-sdk/teams","hooks_url":"https://api.github.com/repos/forrest-mao/python-sdk/hooks","issue_events_url":"https://api.github.com/repos/forrest-mao/python-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/forrest-mao/python-sdk/events","assignees_url":"https://api.github.com/repos/forrest-mao/python-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/forrest-mao/python-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/forrest-mao/python-sdk/tags","blobs_url":"https://api.github.com/repos/forrest-mao/python-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/forrest-mao/python-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/forrest-mao/python-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/forrest-mao/python-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/forrest-mao/python-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/forrest-mao/python-sdk/languages","stargazers_url":"https://api.github.com/repos/forrest-mao/python-sdk/stargazers","contributors_url":"https://api.github.com/repos/forrest-mao/python-sdk/contributors","subscribers_url":"https://api.github.com/repos/forrest-mao/python-sdk/subscribers","subscription_url":"https://api.github.com/repos/forrest-mao/python-sdk/subscription","commits_url":"https://api.github.com/repos/forrest-mao/python-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/forrest-mao/python-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/forrest-mao/python-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/forrest-mao/python-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/forrest-mao/python-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/forrest-mao/python-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/forrest-mao/python-sdk/merges","archive_url":"https://api.github.com/repos/forrest-mao/python-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/forrest-mao/python-sdk/downloads","issues_url":"https://api.github.com/repos/forrest-mao/python-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/forrest-mao/python-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/forrest-mao/python-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/forrest-mao/python-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/forrest-mao/python-sdk/labels{/name}","releases_url":"https://api.github.com/repos/forrest-mao/python-sdk/releases{/id}","created_at":"2014-11-26T14:03:46Z","updated_at":"2015-03-20T15:17:06Z","pushed_at":"2015-04-23T17:10:09Z","git_url":"git://github.com/forrest-mao/python-sdk.git","ssh_url":"git@github.com:forrest-mao/python-sdk.git","clone_url":"https://github.com/forrest-mao/python-sdk.git","svn_url":"https://github.com/forrest-mao/python-sdk","homepage":"","size":3319,"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":"qiniu:master","ref":"master","sha":"fe67bddeea7f6b6ba6b726f36111a8424a289489","user":{"login":"qiniu","id":1563636,"avatar_url":"https://avatars.githubusercontent.com/u/1563636?v=3","gravatar_id":"","url":"https://api.github.com/users/qiniu","html_url":"https://github.com/qiniu","followers_url":"https://api.github.com/users/qiniu/followers","following_url":"https://api.github.com/users/qiniu/following{/other_user}","gists_url":"https://api.github.com/users/qiniu/gists{/gist_id}","starred_url":"https://api.github.com/users/qiniu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qiniu/subscriptions","organizations_url":"https://api.github.com/users/qiniu/orgs","repos_url":"https://api.github.com/users/qiniu/repos","events_url":"https://api.github.com/users/qiniu/events{/privacy}","received_events_url":"https://api.github.com/users/qiniu/received_events","type":"Organization","site_admin":false},"repo":{"id":3795717,"name":"python-sdk","full_name":"qiniu/python-sdk","owner":{"login":"qiniu","id":1563636,"avatar_url":"https://avatars.githubusercontent.com/u/1563636?v=3","gravatar_id":"","url":"https://api.github.com/users/qiniu","html_url":"https://github.com/qiniu","followers_url":"https://api.github.com/users/qiniu/followers","following_url":"https://api.github.com/users/qiniu/following{/other_user}","gists_url":"https://api.github.com/users/qiniu/gists{/gist_id}","starred_url":"https://api.github.com/users/qiniu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qiniu/subscriptions","organizations_url":"https://api.github.com/users/qiniu/orgs","repos_url":"https://api.github.com/users/qiniu/repos","events_url":"https://api.github.com/users/qiniu/events{/privacy}","received_events_url":"https://api.github.com/users/qiniu/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/qiniu/python-sdk","description":"Qiniu Resource (Cloud) Storage SDK for Python","fork":false,"url":"https://api.github.com/repos/qiniu/python-sdk","forks_url":"https://api.github.com/repos/qiniu/python-sdk/forks","keys_url":"https://api.github.com/repos/qiniu/python-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/qiniu/python-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/qiniu/python-sdk/teams","hooks_url":"https://api.github.com/repos/qiniu/python-sdk/hooks","issue_events_url":"https://api.github.com/repos/qiniu/python-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/qiniu/python-sdk/events","assignees_url":"https://api.github.com/repos/qiniu/python-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/qiniu/python-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/qiniu/python-sdk/tags","blobs_url":"https://api.github.com/repos/qiniu/python-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/qiniu/python-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/qiniu/python-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/qiniu/python-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/qiniu/python-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/qiniu/python-sdk/languages","stargazers_url":"https://api.github.com/repos/qiniu/python-sdk/stargazers","contributors_url":"https://api.github.com/repos/qiniu/python-sdk/contributors","subscribers_url":"https://api.github.com/repos/qiniu/python-sdk/subscribers","subscription_url":"https://api.github.com/repos/qiniu/python-sdk/subscription","commits_url":"https://api.github.com/repos/qiniu/python-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/qiniu/python-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/qiniu/python-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/qiniu/python-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/qiniu/python-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/qiniu/python-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/qiniu/python-sdk/merges","archive_url":"https://api.github.com/repos/qiniu/python-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/qiniu/python-sdk/downloads","issues_url":"https://api.github.com/repos/qiniu/python-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/qiniu/python-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/qiniu/python-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/qiniu/python-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/qiniu/python-sdk/labels{/name}","releases_url":"https://api.github.com/repos/qiniu/python-sdk/releases{/id}","created_at":"2012-03-22T08:25:20Z","updated_at":"2015-04-23T05:33:48Z","pushed_at":"2015-04-23T17:10:46Z","git_url":"git://github.com/qiniu/python-sdk.git","ssh_url":"git@github.com:qiniu/python-sdk.git","clone_url":"https://github.com/qiniu/python-sdk.git","svn_url":"https://github.com/qiniu/python-sdk","homepage":"","size":4071,"stargazers_count":130,"watchers_count":130,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":68,"mirror_url":null,"open_issues_count":2,"forks":68,"open_issues":2,"watchers":130,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/qiniu/python-sdk/pulls/164"},"html":{"href":"https://github.com/qiniu/python-sdk/pull/164"},"issue":{"href":"https://api.github.com/repos/qiniu/python-sdk/issues/164"},"comments":{"href":"https://api.github.com/repos/qiniu/python-sdk/issues/164/comments"},"review_comments":{"href":"https://api.github.com/repos/qiniu/python-sdk/pulls/164/comments"},"review_comment":{"href":"https://api.github.com/repos/qiniu/python-sdk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/qiniu/python-sdk/pulls/164/commits"},"statuses":{"href":"https://api.github.com/repos/qiniu/python-sdk/statuses/e66f738104d5119205ac75a3170cd62f7d4154cf"}}}}