upyun / python-sdk

UPYUN Python SDK
117 stars 29 forks source link

分块上传种 kwargs 参数文档描述错误 #34

Closed upyunBlog closed 8 years ago

upyunBlog commented 8 years ago

readme 文档中, 分块上传部分的参数

with open('unix.png', 'rb') as f:
    res = up.put('/upyun-python-sdk/xinu.png', f, checksum=True, multipart=True, block_size=1024*1024, kwargs=kwargs)

有误

应该是

with open('unix.png', 'rb') as f:
    res = up.put('/upyun-python-sdk/xinu.png', f, checksum=True, multipart=True, block_size=1024*1024, **kwargs)
yejingx commented 8 years ago

Fixed. Thanks.