|
@@ -56,9 +56,9 @@ from google.protobuf.internal import test_util
|
|
from google.protobuf import message
|
|
from google.protobuf import message
|
|
|
|
|
|
try:
|
|
try:
|
|
- cmp # Python 2
|
|
|
|
|
|
+ cmp # Python 2
|
|
except NameError:
|
|
except NameError:
|
|
- cmp = lambda(x, y): (x > y) - (x < y) # Python 3
|
|
|
|
|
|
+ cmp = lambda x, y: (x > y) - (x < y) # Python 3
|
|
|
|
|
|
# Python pre-2.6 does not have isinf() or isnan() functions, so we have
|
|
# Python pre-2.6 does not have isinf() or isnan() functions, so we have
|
|
# to provide our own.
|
|
# to provide our own.
|