Removed trailing whitespace as well as unused imports

This commit is contained in:
Alex Gaynor
2014-11-18 16:41:13 -08:00
parent 3ff20fbeb4
commit 0b75c5194f
12 changed files with 157 additions and 176 deletions
+3 -10
View File
@@ -2,7 +2,7 @@
import M2Crypto import M2Crypto
import json import json
import os, grp, pwd, sys, time, random, sys, shutil import os, time, sys, shutil
# This line suppresses the no logging found for module 'jose' warning # This line suppresses the no logging found for module 'jose' warning
# TODO: Check out this module and see if we should be using it for our # TODO: Check out this module and see if we should be using it for our
@@ -12,22 +12,15 @@ logging.basicConfig(filename="/dev/null", level=logging.ERROR)
import jose, csv import jose, csv
import subprocess
from M2Crypto import EVP, X509, RSA
from Crypto.Random import get_random_bytes
from Crypto.PublicKey import RSA
from Crypto.Signature import PKCS1_v1_5
from Crypto.Hash import SHA256
import requests import requests
from letsencrypt.client.acme import acme_object_validate from letsencrypt.client.acme import acme_object_validate
from letsencrypt.client.sni_challenge import SNI_Challenge from letsencrypt.client.sni_challenge import SNI_Challenge
from letsencrypt.client.payment_challenge import Payment_Challenge
from letsencrypt.client import configurator from letsencrypt.client import configurator
from letsencrypt.client import logger, display from letsencrypt.client import logger, display
from letsencrypt.client import le_util, crypto_util, display from letsencrypt.client import le_util, crypto_util
from letsencrypt.client.CONFIG import NONCE_SIZE, RSA_KEY_SIZE, CERT_PATH from letsencrypt.client.CONFIG import RSA_KEY_SIZE, CERT_PATH
from letsencrypt.client.CONFIG import CHAIN_PATH, SERVER_ROOT, KEY_DIR, CERT_DIR from letsencrypt.client.CONFIG import CHAIN_PATH, SERVER_ROOT, KEY_DIR, CERT_DIR
from letsencrypt.client.CONFIG import CERT_KEY_BACKUP from letsencrypt.client.CONFIG import CERT_KEY_BACKUP
from letsencrypt.client.CONFIG import CHALLENGE_PREFERENCES, EXCLUSIVE_CHALLENGES from letsencrypt.client.CONFIG import CHALLENGE_PREFERENCES, EXCLUSIVE_CHALLENGES
-2
View File
@@ -3,11 +3,9 @@ import subprocess
import re import re
import os import os
import sys import sys
import stat
import socket import socket
import time import time
import shutil import shutil
import errno
from letsencrypt.client.CONFIG import SERVER_ROOT, BACKUP_DIR from letsencrypt.client.CONFIG import SERVER_ROOT, BACKUP_DIR
from letsencrypt.client.CONFIG import REWRITE_HTTPS_ARGS, CONFIG_DIR, WORK_DIR from letsencrypt.client.CONFIG import REWRITE_HTTPS_ARGS, CONFIG_DIR, WORK_DIR
-1
View File
@@ -8,7 +8,6 @@ from Crypto.Hash import SHA256
from M2Crypto import EVP, X509, ASN1 from M2Crypto import EVP, X509, ASN1
from letsencrypt.client import logger
from letsencrypt.client.CONFIG import NONCE_SIZE, RSA_KEY_SIZE from letsencrypt.client.CONFIG import NONCE_SIZE, RSA_KEY_SIZE
@@ -1,5 +1,4 @@
from letsencrypt.client.challenge import Challenge from letsencrypt.client.challenge import Challenge
from letsencrypt.client import logger
import textwrap import textwrap
############################################################ ############################################################
-1
View File
@@ -1,4 +1,3 @@
import sys
import time import time
from letsencrypt.client import display from letsencrypt.client import display
-1
View File
@@ -1,5 +1,4 @@
from letsencrypt.client.challenge import Challenge from letsencrypt.client.challenge import Challenge
from letsencrypt.client import logger
import dialog import dialog
############################################################ ############################################################
@@ -1,6 +1,4 @@
from letsencrypt.client.challenge import Challenge from letsencrypt.client.challenge import Challenge
from letsencrypt.client import logger
from letsencrypt.client.CONFIG import RECOVERY_TOKEN_EXT
class RecoveryToken(Challenge): class RecoveryToken(Challenge):
+2 -6
View File
@@ -1,22 +1,18 @@
#!/usr/bin/env python #!/usr/bin/env python
import subprocess
import M2Crypto import M2Crypto
from Crypto import Random from Crypto import Random
import hmac
import hashlib import hashlib
from shutil import move from os import path
from os import remove, close, path
import sys import sys
import binascii import binascii
import augeas
import jose import jose
from letsencrypt.client import configurator from letsencrypt.client import configurator
from letsencrypt.client.CONFIG import CONFIG_DIR, WORK_DIR, SERVER_ROOT from letsencrypt.client.CONFIG import CONFIG_DIR, WORK_DIR, SERVER_ROOT
from letsencrypt.client.CONFIG import OPTIONS_SSL_CONF, APACHE_CHALLENGE_CONF, INVALID_EXT from letsencrypt.client.CONFIG import OPTIONS_SSL_CONF, APACHE_CHALLENGE_CONF, INVALID_EXT
from letsencrypt.client.CONFIG import S_SIZE, NONCE_SIZE from letsencrypt.client.CONFIG import S_SIZE
from letsencrypt.client import logger, crypto_util from letsencrypt.client import logger, crypto_util
from letsencrypt.client.challenge import Challenge from letsencrypt.client.challenge import Challenge