Skip to content

Commit 7a7eef4

Browse files
author
Anthony.Liu
committed
修复在python3.x版本下iteritems方法已弃用导致获取签名异常的问题
1 parent 9bf523b commit 7a7eef4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qcloud_cos/cos_auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def __init__(self, conf, bucket=None, channel=None, params={}, expire=3600, pres
153153
def get_rtmp_sign(self):
154154
# get rtmp string
155155
canonicalized_param = ''
156-
for k, v in self._params.iteritems():
156+
for k, v in self._params.items():
157157
canonicalized_param += '{key}={value}&'.format(key=k, value=v)
158158
if self._presign_expire >= 60:
159159
canonicalized_param += 'presign={value}'.format(value=self._presign_expire)

0 commit comments

Comments
 (0)