小编Kap*_*rma的帖子

为允许的方案打开审核URL。允许使用“文件:”或自定义方案通常是意外的

我在Python中使用此语句

 jsonreq = json.dumps({'jsonrpc': '2.0', 'id': 'qwer', 'method': 'aria2.pauseAll'})
 jsonreq = jsonreq.encode('ascii')
 c = urllib.request.urlopen('http://localhost:6800/jsonrpc', jsonreq)
Run Code Online (Sandbox Code Playgroud)

在执行代码质量测试时,我收到此警告/错误

为允许的方案打开审核URL。经常允许使用“ file:”或自定义方案。

python pytest codacy

5
推荐指数
2
解决办法
872
查看次数

标签 统计

codacy ×1

pytest ×1

python ×1