diff options
author | cclauss <cclauss@bluewin.ch> | 2017-08-21 19:21:11 +0200 |
---|---|---|
committer | Jie Luo <anandolee@gmail.com> | 2017-08-21 10:21:11 -0700 |
commit | 472f700884a2cd4e9b621c5e4b706a9b6de7c870 (patch) | |
tree | ada17df43c2c718311bcfeebc7e3de680b1ef34b /python/compatibility_tests/v2.5.0/tests | |
parent | 1825d6d8f0aedcd7966c5c137a71e46ae650b3da (diff) | |
download | protobuf-472f700884a2cd4e9b621c5e4b706a9b6de7c870.tar.gz protobuf-472f700884a2cd4e9b621c5e4b706a9b6de7c870.tar.bz2 protobuf-472f700884a2cd4e9b621c5e4b706a9b6de7c870.zip |
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/compatibility_tests/v2.5.0/tests')
-rwxr-xr-x | python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/message_test.py | 4 |
1 files changed, 2 insertions, 2 deletions
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. |