From 29f430dc3c911971e62819292ceb02fa79d514a7 Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Fri, 22 Feb 2013 15:40:49 +0100 Subject: python3, pycparser 2.06 compatibility --- Registers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Registers.py') diff --git a/Registers.py b/Registers.py index 7fac4dd..13149fb 100644 --- a/Registers.py +++ b/Registers.py @@ -153,7 +153,7 @@ class Registers(object): elif len(matches) == 3: instruction, reg, operand = matches # remove whitespace from the operand. LF and CR do not occur - operand = operand.translate(None, "\t ") + operand = operand.replace("\t", "").replace(" ", "") if (operand.startswith("[--" + register) or operand.endswith(register + "++]")): return True -- cgit v1.2.1