summaryrefslogtreecommitdiffstats
path: root/eteutils/StringTemplater.py
diff options
context:
space:
mode:
authorDR695H <dr695h@att.com>2018-02-23 17:26:37 -0500
committerDR695H <dr695h@att.com>2018-02-23 17:29:37 -0500
commita8ba95169871965f920b9164f855e73ce2be1d70 (patch)
tree544574c3feee5df1f68f8eba0566eb119e251916 /eteutils/StringTemplater.py
parent861eba5f53f6ae8301e43ec6e87bee48fbbefc1f (diff)
removing string encode which doesnt seem to encode2.0.0-ONAPbeijing2.0.0-ONAP
Issue-ID: TEST-79 Change-Id: Ice7795a2731466119b5fcaa4ecb4bcb1c0f6d917 Signed-off-by: DR695H <dr695h@att.com>
Diffstat (limited to 'eteutils/StringTemplater.py')
-rw-r--r--eteutils/StringTemplater.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/eteutils/StringTemplater.py b/eteutils/StringTemplater.py
index 36ddfab..43d107e 100644
--- a/eteutils/StringTemplater.py
+++ b/eteutils/StringTemplater.py
@@ -3,11 +3,7 @@ from string import Template
class StringTemplater:
"""StringTemplater is common resource for templating with strings."""
-
+
def template_string(self, template, values):
"""Template String takes in a string and its values and converts it using the string.Template class"""
- return Template(template).substitute(values)
-
- def string_Encoder(self,data):
- data = json.dumps(data)
- return data \ No newline at end of file
+ return Template(template).substitute(values) \ No newline at end of file