From 1703efd0389b159ca075856fb654e4cfdfee2951 Mon Sep 17 00:00:00 2001 From: Mark Jansen Date: Sat, 20 Mar 2021 00:32:23 +0100 Subject: [PATCH] Always return the same type from regs_read (#1736) --- bindings/python/capstone/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/python/capstone/__init__.py b/bindings/python/capstone/__init__.py index e8f42b0a..45ea9794 100755 --- a/bindings/python/capstone/__init__.py +++ b/bindings/python/capstone/__init__.py @@ -830,12 +830,12 @@ class CsInsn(object): if regs_read_count.value > 0: regs_read = regs_read[:regs_read_count.value] else: - regs_read = () + regs_read = [] if regs_write_count.value > 0: regs_write = regs_write[:regs_write_count.value] else: - regs_write = () + regs_write = [] return (regs_read, regs_write)