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

fix the compatibility of python2 and pyhton3

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