importmodule bugfix

pull/15/head
Michael Egorov 2017-08-19 12:10:43 -07:00
parent 55dbfdd8e0
commit a7e2f70ddb
2 changed files with 3 additions and 2 deletions

View File

@ -17,7 +17,8 @@ default_algorithm = dict(
def symmetric_from_algorithm(algorithm):
module = importlib('nkms.crypto.block.' + algorithm['symmetric']['cipher'])
module = importlib.import_module(
'nkms.crypto.block.' + algorithm['symmetric']['cipher'])
# TODO need to cache this
return module.Cipher

View File

@ -1,4 +1,4 @@
from distutils.core import setup, find_packages
from setuptools import setup, find_packages
INSTALL_REQUIRES = [
'kademlia>=1.0',