Merge pull request #132 from kuba/pep8

pylint fixes
This commit is contained in:
James Kasten 2014-12-21 16:51:10 -08:00
commit 580dd952af
3 changed files with 3 additions and 4 deletions

View file

@ -36,7 +36,7 @@ def dvsni_gen_cert(filepath, name, r_b64, nonce, key):
key.pem, [nonce + CONFIG.INVALID_EXT, name, ext])
with open(filepath, 'w') as chall_cert_file:
chall_cert_file.write(cert_pem)
chall_cert_file.write(cert_pem)
return le_util.jose_b64encode(dvsni_s)

View file

@ -3,9 +3,8 @@
.. note:: This challenge has not been implemented into the project yet
"""
import display
from letsencrypt.client import challenge
from letsencrypt.client import display
class RecoveryToken(challenge.Challenge):

View file

@ -201,7 +201,7 @@ def read_file(filename):
"""
try:
return filename, file(filename, 'rU').read()
return filename, open(filename, 'rU').read()
except IOError as exc:
raise argparse.ArgumentTypeError(exc.strerror)