Skip to content

Commit

Permalink
BUG: Fixed bug with Python 2.7 in make_list.
Browse files Browse the repository at this point in the history
  • Loading branch information
timcera committed Dec 6, 2018
1 parent 5658b4e commit 203d457
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tstoolbox/tsutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,9 +500,14 @@ def _pick_column_or_value(tsd, var, unit):
return var


def make_list(*strorlist, n=0):
def make_list(*strorlist, **kwds):
"""Normalize strings, converting to numbers or lists.
"""
try:
n = kwds.pop('n')
except KeyError:
n = 0

if isinstance(strorlist, (list, tuple)) and len(strorlist) == 1:
strorlist = strorlist[0]

Expand Down

0 comments on commit 203d457

Please sign in to comment.