summaryrefslogtreecommitdiff
path: root/docs/dev
diff options
context:
space:
mode:
authorXusheng <xusheng@vector35.com>2022-10-14 10:28:55 +0800
committerXusheng <xusheng@vector35.com>2022-10-14 10:28:55 +0800
commita835ef412023854fb434fe02444db4cd26021c9e (patch)
treea1a12567a87de8ca4a82109c5005d9e083f40bca /docs/dev
parente27179bd4353895c17091300bc878e50ca25d680 (diff)
Remove Python 2.7 code in user documentation. Fix https://github.com/Vector35/binaryninja-api/issues/3400
Diffstat (limited to 'docs/dev')
-rw-r--r--docs/dev/bnil-llil.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/dev/bnil-llil.md b/docs/dev/bnil-llil.md
index 2a339371..5d59d3f0 100644
--- a/docs/dev/bnil-llil.md
+++ b/docs/dev/bnil-llil.md
@@ -25,7 +25,7 @@ Next, enter the following in the console:
```
>>> for block in current_function.low_level_il:
... for instr in block:
-... print instr.address, instr.instr_index, instr
+... print (instr.address, instr.instr_index, instr)
...
4196422 0 push(rbp)
4196423 1 rbp = rsp {var_8}
@@ -141,7 +141,7 @@ Now with some knowledge of the `LowLevelIL` class let's try to do something with
>>> for block in current_function.low_level_il:
... for instr in block:
... if instr.operation == LowLevelILOperation.LLIL_SET_REG and instr.dest.name == 'rdx':
-... print instr.address, instr.instr_index, instr
+... print (instr.address, instr.instr_index, instr)
...
4196490 14 rdx = [rax].q
4196500 16 rdx = [rax + 8].q