Skip to content

Commit

Permalink
Fixed error in byteify code. Version 0.8.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
victor73 committed Feb 18, 2019
1 parent 25a3723 commit ba438a7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
osdf-python 0.8.2

* Fixed error in byteify code.

- Victor <victor73@github.com> Mon, 18 Feb 2019 14:00:00 -0400

osdf-python 0.8.1

* Added configuration files for editorconfig and pylint.
Expand Down
6 changes: 3 additions & 3 deletions osdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down

0 comments on commit ba438a7

Please sign in to comment.