whiTeLeaf-TL / U1bot

一个令人欢喜的娱乐机器
GNU General Public License v3.0
6 stars 3 forks source link

refactor: replace `json.loads()` with `json.load()` #26

Closed deepsource-autofix[bot] closed 9 months ago

deepsource-autofix[bot] commented 9 months ago

The json module provides two ways to read JSON data: a .loads() method that accepts a JSON string, and a .load() method, that works on files directly. So instead of reading a file manually and passing it to json.loads(), it is