From a1a73b2edbbd96cfd003d9276c92f9f76e596f0b Mon Sep 17 00:00:00 2001 From: miigotu Date: Sun, 4 Jul 2021 23:22:40 -0400 Subject: [PATCH] Update opcodes.py fixes warning: ``` ...site-packages/js2py/internals/opcodes.py:801: SyntaxWarning: "is" with a literal. Did you mean "=="? if not issubclass(globals()[g], OP_CODE) or g is 'OP_CODE': ``` I assume this was meant to include the OP_CODE class --- 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..c364312d 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 is OP_CODE: continue except: continue