Skip to content

Commit

Permalink
Fixed py2 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Jan 7, 2019
1 parent 5e19973 commit 896f384
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hvplot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ def _get_doc(kind, completions=False, docstring=True, generic=True, style=True):
parameters = []
if sys.version_info.major < 3:
argspec = inspect.getargspec(method)
for arg, dflt in zip(argspec.args[1:], argspec.defaults):
args = argspec.args[1:]
defaults = argspec.defaults or [None]*len(args)
for arg, dflt in zip(args, defaults):
parameters.append((arg, dflt))
else:
sig = inspect.signature(method)
Expand Down

0 comments on commit 896f384

Please sign in to comment.