Skip to content

Commit

Permalink
fix(dev): py3 fixes;
Browse files Browse the repository at this point in the history
- Fixed some py3 things.
  • Loading branch information
JVickery-TBS committed Dec 11, 2023
1 parent be0f4ab commit 7b2b0e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckanext/recombinant/read_excel.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def _filter_bumf(rowiter, header_rows):
for row in rowiter:
i += 1
values = [
unescape(c.value) if isinstance(c.value, unicode) else c.value
unescape(c.value) if isinstance(c.value, str) else c.value
for c in row]
# return next non-empty row
if not all(_is_bumf(v) for v in values):
Expand All @@ -76,7 +76,7 @@ def _is_bumf(value):
:return: whether the value is filler
:rtype: bool
"""
if type(value) in (unicode, str):
if isinstance(value, str):
return value.strip() == ''
return value is None

Expand Down

0 comments on commit 7b2b0e5

Please sign in to comment.