Skip to content

Commit d4a2f4d

Browse files
committed
python 3 兼容性修复,string.ascii_letters (Thanks DelightRun)
1 parent c45ccbd commit d4a2f4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wechat_sdk/lib/crypto/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,5 @@ def get_random_str(self):
7979
8080
@return: 16位字符串
8181
"""
82-
rule = string.letters + string.digits
82+
rule = string.ascii_letters + string.digits
8383
return "".join(random.sample(rule, 16))

0 commit comments

Comments
 (0)