diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/Server/Plugins/Probes.py | 3 |
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 |