From 4d2111e2f13bfd96b21761284d1937dcf78691ed Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Sat, 8 Jan 2022 03:55:05 +0000 Subject: [PATCH] [TS] Drop references to `this` in static `UtilMethods` functions --- genbindings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/genbindings.py b/genbindings.py index 06827cf0..5fd20628 100755 --- a/genbindings.py +++ b/genbindings.py @@ -536,7 +536,7 @@ with open(sys.argv[1]) as in_h, open(f"{sys.argv[2]}/bindings{consts.file_ext}", or method_name.endswith("_read"))): out_java_struct = open(f"{sys.argv[3]}/structs/UtilMethods{consts.file_ext}", "a") for line in out_java_struct_delta.splitlines(): - if not line.strip().startswith("this."): + if "this" not in line: out_java_struct.write(line + "\n") else: out_java_struct.write("\t\t// " + line.strip() + "\n") -- 2.39.5