From cb45b607fc1213cf89d0ca55a43b65b0a4572d3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Andr=C3=A9=20Vadla=20Ravn=C3=A5s?= Date: Tue, 14 Apr 2015 21:29:48 +0200 Subject: [PATCH] Fix inconsistent coding style --- src/frida/core.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/frida/core.py b/src/frida/core.py index 9e5c41e..4d449c5 100644 --- a/src/frida/core.py +++ b/src/frida/core.py @@ -163,7 +163,7 @@ recv(function (data) { self._exec_script(script, send_data) - def read_utf8(self, address, length = -1): + def read_utf8(self, address, length=-1): return self._exec_script("send(Memory.readUtf8String(ptr(\"%u\"), %u));" % (address, length)) def write_utf8(self, address, string): @@ -195,7 +195,7 @@ recv(function (string) { def off(self, signal, callback): self._impl.off(signal, callback) - def _exec_script(self, script_source, post_hook = None): + def _exec_script(self, script_source, post_hook=None): script = self.create_script(script_source) return _execute_script(script, post_hook) @@ -372,10 +372,10 @@ class ModuleMap(AddressMap): super(ModuleMap, self).__init__(modules, lambda m: m.base_address, lambda m: m.size) class FunctionMap(AddressMap): - def __init__(self, functions, get_address = lambda f: f.absolute_address): + def __init__(self, functions, get_address=lambda f: f.absolute_address): super(FunctionMap, self).__init__(functions, get_address, lambda f: 1) -def _execute_script(script, post_hook = None): +def _execute_script(script, post_hook=None): def on_message(message, data): if message['type'] == 'send': if data is not None: