From: Debian Science Team Date: Sun, 13 Nov 2022 10:36:51 +0000 (+0000) Subject: sphinx X-Git-Tag: archive/raspbian/1.5.3+dfsg-2+rpi1~1^2^2^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=838b0c57dbeb2c87e8ce10a54fbf4387d5313ae6;p=pandas.git sphinx Replace sphinx's rpartition with python's in-built one (#43360) Origin: upstream commit 4a14d064187367cacab3ff4652a12a0e45d0711b Author: Alibi Bug-Debian: https://bugs.debian.org/1013375 Gbp-Pq: Name 1013375sphinx.patch --- diff --git a/doc/source/conf.py b/doc/source/conf.py index da022e5a..344e30cf 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -463,7 +463,6 @@ ipython_execlines = [ # eg pandas.Series.str and pandas.Series.dt (see GH9322) import sphinx # isort:skip -from sphinx.util import rpartition # isort:skip from sphinx.ext.autodoc import ( # isort:skip AttributeDocumenter, Documenter, @@ -523,8 +522,8 @@ class AccessorLevelDocumenter(Documenter): # HACK: this is added in comparison to ClassLevelDocumenter # mod_cls still exists of class.accessor, so an extra # rpartition is needed - modname, accessor = rpartition(mod_cls, ".") - modname, cls = rpartition(modname, ".") + modname, _, accessor = mod_cls.rpartition(".") + modname, _, cls = modname.rpartition(".") parents = [cls, accessor] # if the module name is still missing, get it like above if not modname: