1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-25 10:28:36 +00:00

Fix python style issues reported by flake8

Additionally some python2-only "print" statements are now compatible
with python3.
This commit is contained in:
Lars Kruse 2019-12-18 00:25:39 +01:00
parent 73f885e382
commit 7063330e03
17 changed files with 102 additions and 103 deletions

View file

@ -236,7 +236,7 @@ class Proxy:
'method': self.method,
'params': args,
'id': self.id,
}
}
request = urllib.request.Request(self.service.url, json.dumps(data).encode())
if self.service.username:
auth_string = '%s:%s' % (self.service.username, self.service.password)