Pylint
This commit is contained in:
parent
f81c156097
commit
b762463de9
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user