Skip to content

Commit

Permalink
Fixes doc samples
Browse files Browse the repository at this point in the history
  • Loading branch information
tmr232 committed Oct 15, 2019
1 parent b59fc80 commit 9506146
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sark/code/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Switch(object):
>>> my_switch = Switch(switch_jump_address)
>>> for case, target in my_switch:
... print "{} -> 0x{:08X}".format(case, target)
... print("{} -> 0x{:08X}".format(case, target))
"""
def __init__(self, ea):
Expand Down
4 changes: 2 additions & 2 deletions sark/debug.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ class Registers(object):
register info, such as the names of the instruction pointer and the stack pointer.
Usage (on x86):
>>> print Registers().ip.name
>>> print(Registers().ip.name)
eip
>>> print Registers().sp.name
>>> print(Registers().sp.name)
esp
"""
REGISTER_READONLY = 0x001 # the user can't modify the current value of this register
Expand Down

0 comments on commit 9506146

Please sign in to comment.