DebugClients/Python2/DebugUtilities.py

changeset 5241
883e7084818d
parent 5238
682d0f6a6074
parent 5240
71c51aae2f4e
child 5243
f6346f4b46c2
diff -r 682d0f6a6074 -r 883e7084818d DebugClients/Python2/DebugUtilities.py
--- a/DebugClients/Python2/DebugUtilities.py	Sun Oct 16 12:15:18 2016 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,34 +0,0 @@
-# -*- coding: utf-8 -*-
-
-# Copyright (c) 2016 Detlev Offenbach <detlev@die-offenbachs.de>
-#
-
-"""
-Module implementing utilities functions for the debug client.
-"""
-
-
-def prepareJsonCommand(method, params):
-    """
-    Function to prepare a single command or response for transmission to
-    the IDE.
-    
-    @param method command or response name to be sent
-    @type str
-    @param params dictionary of named parameters for the command or response
-    @type dict
-    @return prepared JSON command or response string
-    @rtype str
-    """
-    import json
-    
-    commandDict = {
-        "jsonrpc": "2.0",
-        "method": method,
-        "params": params,
-    }
-    return json.dumps(commandDict) + '\n'
-
-#
-# eflag: FileType = Python2
-# eflag: noqa = M702

eric ide

mercurial