comparison: DebugClients/Python/DebugUtilities.py
DebugClients/Python/DebugUtilities.py
- changeset 5258
- cfca063afa07
- parent 5178
- 878ce843ca9f
- child 5389
- 9b1c800daff3
equal
deleted
inserted
replaced
4 # |
4 # |
5 |
5 |
6 """ |
6 """ |
7 Module implementing utilities functions for the debug client. |
7 Module implementing utilities functions for the debug client. |
8 """ |
8 """ |
|
9 |
|
10 import json |
9 |
11 |
10 # |
12 # |
11 # Taken from inspect.py of Python 3.4 |
13 # Taken from inspect.py of Python 3.4 |
12 # |
14 # |
13 |
15 |
134 @param params dictionary of named parameters for the command or response |
136 @param params dictionary of named parameters for the command or response |
135 @type dict |
137 @type dict |
136 @return prepared JSON command or response string |
138 @return prepared JSON command or response string |
137 @rtype str |
139 @rtype str |
138 """ |
140 """ |
139 import json |
|
140 |
|
141 commandDict = { |
141 commandDict = { |
142 "jsonrpc": "2.0", |
142 "jsonrpc": "2.0", |
143 "method": method, |
143 "method": method, |
144 "params": params, |
144 "params": params, |
145 } |
145 } |