aboutsummaryrefslogtreecommitdiffhomepage
path: root/python/google
diff options
context:
space:
mode:
authorGravatar cclauss <cclauss@bluewin.ch>2017-08-21 19:21:11 +0200
committerGravatar Jie Luo <anandolee@gmail.com>2017-08-21 10:21:11 -0700
commit472f700884a2cd4e9b621c5e4b706a9b6de7c870 (patch)
treeada17df43c2c718311bcfeebc7e3de680b1ef34b /python/google
parent1825d6d8f0aedcd7966c5c137a71e46ae650b3da (diff)
remove the parens from the cmp() lambda definition (#3526)
* remove the parens from the cmp() lambda definition https://github.com/PythonCharmers/python-future/pull/298 * remove the parens from the cmp() lambda definition https://github.com/PythonCharmers/python-future/pull/298
Diffstat (limited to 'python/google')
-rwxr-xr-xpython/google/protobuf/internal/message_test.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/google/protobuf/internal/message_test.py b/python/google/protobuf/internal/message_test.py
index dafc8077..3373b21f 100755
--- a/python/google/protobuf/internal/message_test.py
+++ b/python/google/protobuf/internal/message_test.py
@@ -57,9 +57,9 @@ try:
except ImportError:
import unittest
try:
- cmp # Python 2
+ cmp # Python 2
except NameError:
- cmp = lambda(x, y): (x > y) - (x < y) # Python 3
+ cmp = lambda x, y: (x > y) - (x < y) # Python 3
from google.protobuf import map_unittest_pb2
from google.protobuf import unittest_pb2