aboutsummaryrefslogtreecommitdiff
path: root/packages/Python/lldbsuite/test/functionalities/command_script/import/bar
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2017-01-02 19:26:05 +0000
committerDimitry Andric <dim@FreeBSD.org>2017-01-02 19:26:05 +0000
commit14f1b3e8826ce43b978db93a62d1166055db5394 (patch)
tree0a00ad8d3498783fe0193f3b656bca17c4c8697d /packages/Python/lldbsuite/test/functionalities/command_script/import/bar
parent4ee8c119c71a06dcad1e0fecc8c675e480e59337 (diff)
Notes
Diffstat (limited to 'packages/Python/lldbsuite/test/functionalities/command_script/import/bar')
-rw-r--r--packages/Python/lldbsuite/test/functionalities/command_script/import/bar/bar.py17
-rw-r--r--packages/Python/lldbsuite/test/functionalities/command_script/import/bar/barutil.py2
2 files changed, 11 insertions, 8 deletions
diff --git a/packages/Python/lldbsuite/test/functionalities/command_script/import/bar/bar.py b/packages/Python/lldbsuite/test/functionalities/command_script/import/bar/bar.py
index bbc41f3b217d..444e00976ad9 100644
--- a/packages/Python/lldbsuite/test/functionalities/command_script/import/bar/bar.py
+++ b/packages/Python/lldbsuite/test/functionalities/command_script/import/bar/bar.py
@@ -1,12 +1,15 @@
from __future__ import print_function
+
def bar_function(debugger, args, result, dict):
- global UtilityModule
- print(UtilityModule.barutil_function("bar told me " + args), file=result)
- return None
+ global UtilityModule
+ print(UtilityModule.barutil_function("bar told me " + args), file=result)
+ return None
+
def __lldb_init_module(debugger, session_dict):
- global UtilityModule
- UtilityModule = __import__("barutil")
- debugger.HandleCommand("command script add -f bar.bar_function barothercmd")
- return None \ No newline at end of file
+ global UtilityModule
+ UtilityModule = __import__("barutil")
+ debugger.HandleCommand(
+ "command script add -f bar.bar_function barothercmd")
+ return None
diff --git a/packages/Python/lldbsuite/test/functionalities/command_script/import/bar/barutil.py b/packages/Python/lldbsuite/test/functionalities/command_script/import/bar/barutil.py
index 0d3d2eb1b2d7..70ecea300578 100644
--- a/packages/Python/lldbsuite/test/functionalities/command_script/import/bar/barutil.py
+++ b/packages/Python/lldbsuite/test/functionalities/command_script/import/bar/barutil.py
@@ -1,2 +1,2 @@
def barutil_function(x):
- return "barutil says: " + x
+ return "barutil says: " + x