From 093057486ab0aeb2938537ddcfea36d3c1d14fd3 Mon Sep 17 00:00:00 2001 From: Paul Nobrega Date: Mon, 30 Sep 2019 10:56:32 -0400 Subject: [PATCH] Update docstring.py to use inspect.cleandoc inplace of dedent (#24) this change is made to keep current with matplotlib library changes --- FlowCytometryTools/core/docstring.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FlowCytometryTools/core/docstring.py b/FlowCytometryTools/core/docstring.py index a38749f..f6bc904 100644 --- a/FlowCytometryTools/core/docstring.py +++ b/FlowCytometryTools/core/docstring.py @@ -2,7 +2,7 @@ import string -from matplotlib.cbook import dedent +from matplotlib import inspect class FormatDict(dict): @@ -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