Skip to content

Commit ba438a7

Browse files
author
victor73
committed
Fixed error in byteify code. Version 0.8.2.
1 parent 25a3723 commit ba438a7

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

CHANGES

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
osdf-python 0.8.2
2+
3+
* Fixed error in byteify code.
4+
5+
- Victor <victor73@github.com> Mon, 18 Feb 2019 14:00:00 -0400
6+
17
osdf-python 0.8.1
28

39
* Added configuration files for editorconfig and pylint.

osdf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,12 @@ def _byteify(self, input_str):
114114
#pylint: disable=no-else-return,undefined-variable
115115
if isinstance(input_str, dict):
116116
return {self._byteify(key):self._byteify(value) for key, value in input_str.iteritems()}
117-
elif isinstance(input, list):
117+
elif isinstance(input_str, list):
118118
return [self._byteify(element) for element in input_str]
119-
elif isinstance(input, unicode):
119+
elif isinstance(input_str, unicode):
120120
return input_str.encode('utf-8')
121121
else:
122-
return input
122+
return input_str
123123

124124
def get_info(self):
125125
"""

0 commit comments

Comments
 (0)