From c5c5b365365f0c021a365a461b0bb989108ad628 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 19 May 2020 14:18:35 -0400 Subject: [PATCH] Fix reverse noderange in python 3 python3 environments do not natively know the word 'unicode', in such a case, make unicode an alias for 'str'. --- confluent_server/confluent/core.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/confluent_server/confluent/core.py b/confluent_server/confluent/core.py index 997781cd..7d08337c 100644 --- a/confluent_server/confluent/core.py +++ b/confluent_server/confluent/core.py @@ -69,6 +69,10 @@ import sys pluginmap = {} dispatch_plugins = (b'ipmi', u'ipmi', b'redfish', u'redfish', b'tsmsol', u'tsmsol') +try: + unicode +except NameError: + unicode = str def seek_element(currplace, currkey): try: