From 86a8f3b1609049b8c8fb3e0d3167641449362328 Mon Sep 17 00:00:00 2001 From: Xusheng Date: Fri, 9 Oct 2020 16:42:19 +0800 Subject: remove comma in Python code --- examples/x86_extension/src/asmx86 | 2 +- python/binaryview.py | 4 ++-- python/examples/kaitai/fasttracker_xm_module.py | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/x86_extension/src/asmx86 b/examples/x86_extension/src/asmx86 index b147f82e..3b400b24 160000 --- a/examples/x86_extension/src/asmx86 +++ b/examples/x86_extension/src/asmx86 @@ -1 +1 @@ -Subproject commit b147f82e8adcfc250ca5d0ba0078a4f1b6a2d348 +Subproject commit 3b400b243b6daa6ce1742203e7799130475c40d4 diff --git a/python/binaryview.py b/python/binaryview.py index 503bd68e..b46587e6 100644 --- a/python/binaryview.py +++ b/python/binaryview.py @@ -4715,8 +4715,8 @@ class BinaryView(object): >>> """ - result = core.BNPossibleValueSet(); - errors = ctypes.c_char_p(); + result = core.BNPossibleValueSet() + errors = ctypes.c_char_p() if not core.BNParsePossibleValueSet(self.handle, value, state, result, here, errors): if errors: error_str = errors.value.decode("utf-8") diff --git a/python/examples/kaitai/fasttracker_xm_module.py b/python/examples/kaitai/fasttracker_xm_module.py index cca84ab0..9dacb370 100644 --- a/python/examples/kaitai/fasttracker_xm_module.py +++ b/python/examples/kaitai/fasttracker_xm_module.py @@ -459,11 +459,11 @@ class FasttrackerXmModule(KaitaiStruct): class SamplesData(KaitaiStruct): """The saved data uses simple delta-encoding to achieve better compression ratios (when compressed with pkzip, etc.) Pseudocode for converting the delta-coded data to normal data, - old = 0; + old = 0 for i in range(data_len): - new = sample[i] + old; - sample[i] = new; - old = new; + new = sample[i] + old + sample[i] = new + old = new """ SEQ_FIELDS = ["data"] def __init__(self, header, _io, _parent=None, _root=None): -- cgit v1.3.1