From 3b919421d83281c068589023511f4f9e09fd1610 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Sun, 27 Jun 2021 12:02:48 +0000 Subject: [PATCH] Replace ternary syntax with if expression --- tests/resources/addressbook_pb2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/resources/addressbook_pb2.py b/tests/resources/addressbook_pb2.py index 7b52e5c..bf6a20b 100644 --- a/tests/resources/addressbook_pb2.py +++ b/tests/resources/addressbook_pb2.py @@ -2,7 +2,7 @@ # source: addressbook.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +_b=(lambda x:x) if sys.version_info[0]<3 else (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection