From ba438a7aa38533e37c042daf97bf65292c72d925 Mon Sep 17 00:00:00 2001 From: victor73 Date: Mon, 18 Feb 2019 15:34:57 -0500 Subject: [PATCH] Fixed error in byteify code. Version 0.8.2. --- CHANGES | 6 ++++++ osdf.py | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGES b/CHANGES index 794d107..e63fd37 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,9 @@ +osdf-python 0.8.2 + + * Fixed error in byteify code. + + - Victor Mon, 18 Feb 2019 14:00:00 -0400 + osdf-python 0.8.1 * Added configuration files for editorconfig and pylint. diff --git a/osdf.py b/osdf.py index b75b7bc..0d68d48 100644 --- a/osdf.py +++ b/osdf.py @@ -114,12 +114,12 @@ def _byteify(self, input_str): #pylint: disable=no-else-return,undefined-variable if isinstance(input_str, dict): return {self._byteify(key):self._byteify(value) for key, value in input_str.iteritems()} - elif isinstance(input, list): + elif isinstance(input_str, list): return [self._byteify(element) for element in input_str] - elif isinstance(input, unicode): + elif isinstance(input_str, unicode): return input_str.encode('utf-8') else: - return input + return input_str def get_info(self): """