From e78d3fe8d64267c5e05febcc57ea9d8750c93aff Mon Sep 17 00:00:00 2001 From: milahu Date: Wed, 11 May 2022 23:01:58 +0200 Subject: [PATCH] fix: SyntaxWarning: "is" with a literal --- js2py/internals/opcodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js2py/internals/opcodes.py b/js2py/internals/opcodes.py index 15c57ccd..2f6c65f5 100644 --- a/js2py/internals/opcodes.py +++ b/js2py/internals/opcodes.py @@ -798,7 +798,7 @@ def eval(self, ctx): g = '' for g in globals(): try: - if not issubclass(globals()[g], OP_CODE) or g is 'OP_CODE': + if not issubclass(globals()[g], OP_CODE) or g == 'OP_CODE': continue except: continue