summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorXusheng <xusheng@vector35.com>2020-10-09 16:42:19 +0800
committerXusheng <xusheng@vector35.com>2020-10-09 16:42:19 +0800
commit86a8f3b1609049b8c8fb3e0d3167641449362328 (patch)
tree8d31fcaa0eb231fb032a1d9fe60517ca21c64a57 /python
parent307fe4be9208636e54f90a24f6d0deb56512069d (diff)
remove comma in Python code
Diffstat (limited to 'python')
-rw-r--r--python/binaryview.py4
-rw-r--r--python/examples/kaitai/fasttracker_xm_module.py8
2 files changed, 6 insertions, 6 deletions
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):
<in set([0x1, 0x2, 0x3])>
>>>
"""
- 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):