summaryrefslogtreecommitdiff
path: root/Registers.py
diff options
context:
space:
mode:
authorPeter Wu <lekensteyn@gmail.com>2013-02-22 15:40:49 +0100
committerPeter Wu <lekensteyn@gmail.com>2013-02-22 15:40:49 +0100
commit29f430dc3c911971e62819292ceb02fa79d514a7 (patch)
tree1e8884cec635577b2b591309a22e3b9b05adebd1 /Registers.py
parent538cf03964d804c5da66385acd725b9449dfae09 (diff)
downloadpp2cc-29f430dc3c911971e62819292ceb02fa79d514a7.tar.gz
python3, pycparser 2.06 compatibility
Diffstat (limited to 'Registers.py')
-rw-r--r--Registers.py2
1 files changed, 1 insertions, 1 deletions
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