From 472f700884a2cd4e9b621c5e4b706a9b6de7c870 Mon Sep 17 00:00:00 2001 From: cclauss Date: Mon, 21 Aug 2017 19:21:11 +0200 Subject: 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 --- .../v2.5.0/tests/google/protobuf/internal/message_test.py | 4 ++-- python/google/protobuf/internal/message_test.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'python') diff --git a/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/message_test.py b/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/message_test.py index 5053f035..e71b295b 100755 --- a/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/message_test.py +++ b/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/message_test.py @@ -56,9 +56,9 @@ from google.protobuf.internal import test_util from google.protobuf import message 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 # Python pre-2.6 does not have isinf() or isnan() functions, so we have # to provide our own. 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 -- cgit v1.2.3