added missing secrets import

master
Kevin Froman 2019-06-10 23:21:44 -05:00
parent 6e1f26dc91
commit af6834cfd0
1 changed files with 5 additions and 0 deletions

View File

@ -20,6 +20,11 @@
import time import time
import onionrexceptions, logger, onionrpeers import onionrexceptions, logger, onionrpeers
from utils import networkmerger from utils import networkmerger
# secrets module was added into standard lib in 3.6+
if sys.version_info[0] == 3 and sys.version_info[1] < 6:
from dependencies import secrets
elif sys.version_info[0] == 3 and sys.version_info[1] >= 6:
import secrets
def connect_new_peer_to_communicator(comm_inst, peer='', useBootstrap=False): def connect_new_peer_to_communicator(comm_inst, peer='', useBootstrap=False):
config = comm_inst._core.config config = comm_inst._core.config
retData = False retData = False