Skip to content

Commit

Permalink
Update docstring.py to use inspect.cleandoc inplace of dedent (#24)
Browse files Browse the repository at this point in the history
this change is made to keep current with matplotlib library changes
  • Loading branch information
NobregaIPI authored and eyurtsev committed Sep 30, 2019
1 parent 4355632 commit 0930574
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FlowCytometryTools/core/docstring.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import string

from matplotlib.cbook import dedent
from matplotlib import inspect


class FormatDict(dict):
Expand Down Expand Up @@ -53,7 +53,7 @@ def __call__(self, func):
if func.__doc__:
doc = func.__doc__
if self.auto_dedent:
doc = dedent(doc)
doc = inspect.cleandoc(doc)
func.__doc__ = self._format(doc)
return func

Expand Down

0 comments on commit 0930574

Please sign in to comment.