From 4bdd3f14cad6f9b3ceffa07350b96439df697ab6 Mon Sep 17 00:00:00 2001 From: Abhishek Kapatkar Date: Mon, 31 Jul 2023 11:12:25 -0700 Subject: [PATCH] Replace is with == and fix SyntaxWarning for python3.10+ --- pygenie/jobs/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygenie/jobs/core.py b/pygenie/jobs/core.py index 81ccdf4..10a8b0e 100644 --- a/pygenie/jobs/core.py +++ b/pygenie/jobs/core.py @@ -88,7 +88,7 @@ def args_to_str(self, args): results = list() redact_hint=None - if len(args) > 0 and len(args) % 2 is 0 and is_str(args[0]): + if len(args) > 0 and len(args) % 2 == 0 and is_str(args[0]): redact_hint = args[0] for i, arg in enumerate([convert_to_unicode(a) for a in args]):