Skip to content

Commit

Permalink
Made docstring setting py2 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Jan 7, 2019
1 parent 20fe255 commit 5e19973
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion hvplot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@ def _get_doc(kind, completions=False, docstring=True, generic=True, style=True):

def _patch_doc(kind):
method = getattr(hvPlot, kind)
method.__doc__ = _get_doc(kind, get_ipy())
docstring = _get_doc(kind, get_ipy())
if sys.version_info.major == 2:
method.__func__.__doc__ = docstring
else:
method.__doc__ = docstring


def help(kind=None, docstring=True, generic=True, style=True):
Expand Down

0 comments on commit 5e19973

Please sign in to comment.