Skip to content

Commit

Permalink
Reponse => Response
Browse files Browse the repository at this point in the history
  • Loading branch information
forrest-mao committed Apr 21, 2015
1 parent 7842d0b commit cb8d845
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion qiniu/services/processing/pfop.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def execute(self, key, fops, force=None):
Returns:
一个dict变量,返回持久化处理的persistentId,类似{"persistentId": 5476bedf7823de4068253bae};
一个ReponseInfo对象
一个ResponseInfo对象
"""
ops = ';'.join(fops)
data = {'bucket': self.bucket, 'key': key, 'fops': ops}
Expand Down
20 changes: 10 additions & 10 deletions qiniu/services/storage/bucket.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def list(self, bucket, prefix=None, marker=None, limit=None, delimiter=None):
Returns:
一个dict变量,类似 {"hash": "<Hash string>", "key": "<Key string>"}
一个ReponseInfo对象
一个ResponseInfo对象
一个EOF信息。
"""
options = {
Expand Down Expand Up @@ -78,7 +78,7 @@ def stat(self, bucket, key):
"mimeType": "application/octet-stream",
"putTime": 13603956734587420
}
一个ReponseInfo对象
一个ResponseInfo对象
"""
resource = entry(bucket, key)
return self.__rs_do('stat', resource)
Expand All @@ -95,7 +95,7 @@ def delete(self, bucket, key):
Returns:
一个dict变量,成功返回NULL,失败返回{"error": "<errMsg string>"}
一个ReponseInfo对象
一个ResponseInfo对象
"""
resource = entry(bucket, key)
return self.__rs_do('delete', resource)
Expand All @@ -112,7 +112,7 @@ def rename(self, bucket, key, key_to):
Returns:
一个dict变量,成功返回NULL,失败返回{"error": "<errMsg string>"}
一个ReponseInfo对象
一个ResponseInfo对象
"""
return self.move(bucket, key, bucket, key_to)

Expand All @@ -130,7 +130,7 @@ def move(self, bucket, key, bucket_to, key_to):
Returns:
一个dict变量,成功返回NULL,失败返回{"error": "<errMsg string>"}
一个ReponseInfo对象
一个ResponseInfo对象
"""
resource = entry(bucket, key)
to = entry(bucket_to, key_to)
Expand All @@ -150,7 +150,7 @@ def copy(self, bucket, key, bucket_to, key_to):
Returns:
一个dict变量,成功返回NULL,失败返回{"error": "<errMsg string>"}
一个ReponseInfo对象
一个ResponseInfo对象
"""
resource = entry(bucket, key)
to = entry(bucket_to, key_to)
Expand All @@ -168,7 +168,7 @@ def fetch(self, url, bucket, key):
Returns:
一个dict变量,成功返回NULL,失败返回{"error": "<errMsg string>"}
一个ReponseInfo对象
一个ResponseInfo对象
"""
resource = urlsafe_base64_encode(url)
to = entry(bucket, key)
Expand All @@ -186,7 +186,7 @@ def prefetch(self, bucket, key):
Returns:
一个dict变量,成功返回NULL,失败返回{"error": "<errMsg string>"}
一个ReponseInfo对象
一个ResponseInfo对象
"""
resource = entry(bucket, key)
return self.__io_do('prefetch', resource)
Expand Down Expand Up @@ -225,7 +225,7 @@ def batch(self, operations):
{ "code": <HttpCode int>, "data": { "error": "<ErrorMessage string>" } },
...
]
一个ReponseInfo对象
一个ResponseInfo对象
"""
url = 'http://{0}/batch'.format(config.get_default('default_rs_host'))
return self.__post(url, dict(op=operations))
Expand All @@ -238,7 +238,7 @@ def buckets(self):
Returns:
一个dict变量,类似:
[ <Bucket1>, <Bucket2>, ... ]
一个ReponseInfo对象
一个ResponseInfo对象
"""
return self.__rs_do('buckets')

Expand Down
4 changes: 2 additions & 2 deletions qiniu/services/storage/uploader.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def put_data(
Returns:
一个dict变量,类似 {"hash": "<Hash string>", "key": "<Key string>"}
一个ReponseInfo对象
一个ResponseInfo对象
"""
crc = crc32(data) if check_crc else None
return _form_put(up_token, key, data, params, mime_type, crc, False, progress_handler)
Expand All @@ -42,7 +42,7 @@ def put_file(up_token, key, file_path, params=None, mime_type='application/octet
Returns:
一个dict变量,类似 {"hash": "<Hash string>", "key": "<Key string>"}
一个ReponseInfo对象
一个ResponseInfo对象
"""
ret = {}
size = os.stat(file_path).st_size
Expand Down

0 comments on commit cb8d845

Please sign in to comment.