From b762463de9c686420c740c5e19b9fde878566ff5 Mon Sep 17 00:00:00 2001 From: Kirby Date: Sun, 13 Dec 2020 14:44:00 +0100 Subject: [PATCH] Pylint --- ovh-bills.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ovh-bills.py b/ovh-bills.py index 172fdab..6bf1355 100755 --- a/ovh-bills.py +++ b/ovh-bills.py @@ -2,8 +2,8 @@ import requests import ovh -import pycurl import yaml +import pycurl try: input = raw_input @@ -24,7 +24,7 @@ for bill in bills: f.write(r.content) f.close() url += bill + ".pdf" - with open('/dev/null','wb') as output: + with open('/dev/null', 'wb') as output: c = pycurl.Curl() c.setopt(c.URL, url) c.setopt(c.USERPWD, '%s:%s' %(username, password)) @@ -34,7 +34,7 @@ for bill in bills: status = c.getinfo(c.RESPONSE_CODE) c.close() output.close() - if (status == 404): + if status == 404: file = open(file_path) c = pycurl.Curl() c.setopt(c.URL, url)