Skip to content

Commit

Permalink
Merge pull request #69 from Netflix/fix_syntax
Browse files Browse the repository at this point in the history
Replace is with == and fix SyntaxWarning for python3.10+
  • Loading branch information
cabhishek authored Jul 31, 2023
2 parents 61cbfc0 + 4bdd3f1 commit 722c9e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygenie/jobs/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]):
Expand Down

0 comments on commit 722c9e3

Please sign in to comment.