提交 8ed6a47b 编写于 作者: Q qjing666

fix the compatibility of python2 and pyhton3

上级 c338b6c2
......@@ -2,3 +2,4 @@ sphinx==2.1.0
mistune
sphinx_rtd_theme
paddlepaddle>=1.6
zmq
......@@ -42,9 +42,9 @@ try:
from ssl import RAND_bytes
rng = RAND_bytes
except(AttributeError, ImportError):
raise RNGError
#python2
#rng = os.urandom
#python2
rng = os.urandom
#raise RNGError
class DiffieHellman:
"""
......
......@@ -16,7 +16,7 @@ import logging
from paddle_fl.core.scheduler.agent_master import FLWorkerAgent
import numpy
import hmac
#from .diffiehellman.diffiehellman import DiffieHellman
from .diffiehellman.diffiehellman import DiffieHellman
class FLTrainerFactory(object):
def __init__(self):
......
......@@ -12,5 +12,5 @@
# See the License for the specific language governing permissions and
# limitations under the License.
""" PaddleFL version string """
fl_version = "0.1.4"
module_proto_version = "0.1.4"
fl_version = "0.1.5"
module_proto_version = "0.1.5"
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册