Merge pull request #348 from TrueTechy/fix/sonarqube-clumsy

Various fixes from sonarqube
This commit is contained in:
Odd Stråbø 2020-08-05 22:45:11 +02:00 committed by GitHub
commit 16bd0091f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 54 additions and 82 deletions

View file

@ -215,8 +215,8 @@ def set_screensaver(value):
class JSONRPC(object):
version = 1
jsonrpc = "2.0"
id = 1
jsonrpc_version = "2.0"
def __init__(self, method, **kwargs):
@ -228,8 +228,8 @@ class JSONRPC(object):
def _query(self):
query = {
'jsonrpc': self.jsonrpc,
'id': self.version,
'jsonrpc': self.jsonrpc_version,
'id': self.id,
'method': self.method,
}
if self.params is not None: