Skip to content

Commit afb25ec

Browse files
committed
Remove a conditional branch related to Python2
1 parent ef6c30c commit afb25ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/paddle/fluid/distributed/ps_pb2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
import sys
1919

20-
_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode('latin1'))
20+
_b = (lambda x: x.encode('latin1'))
2121
from google.protobuf.internal import enum_type_wrapper
2222
from google.protobuf import descriptor as _descriptor
2323
from google.protobuf import message as _message

0 commit comments

Comments
 (0)