lkml.org 
[lkml]   [2023]   [Sep]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] docs/sphinx: Explicitly convert Sphinx paths to str
On Sun, Sep 10, 2023 at 12:08:06AM -0400, Oliver Faso wrote:
> else:
> - doc = env.srcdir + "/" + env.docname + ":" + str(self.lineno)
> + doc = str(env.srcdir) + "/" + env.docname + ":" + str(self.lineno)

Would we be better off doing the path manipulation in Path, then converting
to string? ie:

doc = str(env.srcdir / env.docname) + ":" + str(self.lineno)

\
 
 \ /
  Last update: 2023-09-10 06:19    [W:0.049 / U:1.228 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site