summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2012-06-14 15:12:13 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2012-06-14 15:12:13 -0400
commit252989b29cf04aadf9775d720da495b381df7a43 (patch)
treec40d542ee12ec3b9cdf73d886f074f74d5d0edcc
parentc3f70edc456bb47c2058a424f99e4673b8586214 (diff)
downloadbcfg2-252989b29cf04aadf9775d720da495b381df7a43.tar.gz
bcfg2-252989b29cf04aadf9775d720da495b381df7a43.tar.bz2
bcfg2-252989b29cf04aadf9775d720da495b381df7a43.zip
fix ProbeData inheritance from str
-rw-r--r--src/lib/Server/Plugins/Probes.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/Server/Plugins/Probes.py b/src/lib/Server/Plugins/Probes.py
index 59f7e30bd..64ed4b425 100644
--- a/src/lib/Server/Plugins/Probes.py
+++ b/src/lib/Server/Plugins/Probes.py
@@ -45,6 +45,9 @@ class ProbeData(str):
""" a ProbeData object emulates a str object, but also has .xdata
and .json properties to provide convenient ways to use ProbeData
objects as XML or JSON data """
+ def __new__(cls, data):
+ str.__new__(cls, data)
+
def __init__(self, data):
str.__init__(self, data)
self._xdata = None