From 810e50a0409551c5287da983762d964d8455c9ad Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Thu, 12 Jan 2017 07:26:04 +0100 Subject: [PATCH] Fix minor issues - landscape.io complained - obsolete imports - ciphers -> self.ciphers --- src/defaultKnownNodes.py | 1 - src/network/tls.py | 3 ++- src/shared.py | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/defaultKnownNodes.py b/src/defaultKnownNodes.py index 986fbf6d..4557c2e9 100644 --- a/src/defaultKnownNodes.py +++ b/src/defaultKnownNodes.py @@ -5,7 +5,6 @@ import time import random import sys from time import strftime, localtime -import shared import state def createDefaultKnownNodes(appdata): diff --git a/src/network/tls.py b/src/network/tls.py index 855bcd93..8f104c55 100644 --- a/src/network/tls.py +++ b/src/network/tls.py @@ -5,6 +5,7 @@ SSL/TLS negotiation. import asyncore import socket import ssl +import sys import protocol @@ -45,7 +46,7 @@ class TLSHandshake(asyncore.dispatcher): # socket. if sys.version_info >= (2,7,9): context = ssl.create_default_context(purpose = ssl.Purpose.SERVER_AUTH if self.server_side else ssl.Purpose.CLIENT_AUTH) - context.set_ciphers(ciphers) + context.set_ciphers(self.ciphers) # context.set_ecdh_curve("secp256k1") context.check_hostname = False context.verify_mode = ssl.CERT_NONE diff --git a/src/shared.py b/src/shared.py index f67a2d07..f58a1cd6 100644 --- a/src/shared.py +++ b/src/shared.py @@ -8,7 +8,6 @@ useVeryEasyProofOfWorkForTesting = False # If you set this to True while on the # Libraries. -import collections import os import pickle import Queue