From cbe0c99181ba9398b5905a34dde7dc96dd369fd8 Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Date: Fri, 22 Apr 2022 03:28:12 +0100 Subject: `rawsource` is deprecated in `docutils.nodes.Text` --- doc/development/tutorials/examples/todo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/development/tutorials') diff --git a/doc/development/tutorials/examples/todo.py b/doc/development/tutorials/examples/todo.py index 59e394ee8..61eaac388 100644 --- a/doc/development/tutorials/examples/todo.py +++ b/doc/development/tutorials/examples/todo.py @@ -93,7 +93,7 @@ def process_todo_nodes(app, doctree, fromdocname): description = ( _('(The original entry is located in %s, line %d and can be found ') % (filename, todo_info['lineno'])) - para += nodes.Text(description, description) + para += nodes.Text(description) # Create a reference newnode = nodes.reference('', '') @@ -104,7 +104,7 @@ def process_todo_nodes(app, doctree, fromdocname): newnode['refuri'] += '#' + todo_info['target']['refid'] newnode.append(innernode) para += newnode - para += nodes.Text('.)', '.)') + para += nodes.Text('.)') # Insert into the todolist content.append(todo_info['todo']) -- cgit v1.2.1