Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

1import odoo.release
2from odoo.http import request, route
3
4from . import json2
5
6RPC_DEPRECATION_NOTICE = """\
7The /xmlrpc, /xmlrpc/2 and /jsonrpc endpoints are deprecated in Odoo 19 \
8and scheduled for removal in Odoo 20. Please report the problem to the \
9client making the request.
10Mute this logger: --log-handler %s:ERROR
11https://www.odoo.com/documentation/latest/developer/reference/external_api.html#migrating-from-xml-rpc-json-rpc"""
12
13
14def _check_request():
…lines 15–30 unchanged (16 lines)

After

1import odoo.release
2from odoo.http import request, route
3
4from . import json2
5
6RPC_DEPRECATION_NOTICE = """\
7The /xmlrpc, /xmlrpc/2 and /jsonrpc endpoints are deprecated in Odoo 19 \
8and scheduled for removal in Odoo 22. Please report the problem to the \
9client making the request.
10Mute this logger: --log-handler %s:ERROR
11https://www.odoo.com/documentation/latest/developer/reference/external_api.html#migrating-from-xml-rpc-json-rpc"""
12
13
14def _check_request():
…lines 15–30 unchanged (16 lines)

Before

module
import_statement
import "import"
dotted_name
identifier "odoo"
. "."
identifier "release"
import_from_statement
from "from"
dotted_name
identifier "odoo"
. "."
identifier "http"
import "import"
dotted_name
identifier "request"
, ","
dotted_name
identifier "route"
import_from_statement
from "from"
relative_import
import_prefix
. "."
import "import"
dotted_name
identifier "json2"
expression_statement
assignment
identifier "RPC_DEPRECATION_NOTICE"
= "="
string
string_start "\"\"\""
string_content
escape_sequence "\\\n"
escape_sequence "\\\n"
escape_sequence "\\\n"
string_end "\"\"\""
function_definition (+31 nodes collapsed)
import_from_statement
from "from"
relative_import
import_prefix
. "."
dotted_name
identifier "jsonrpc"
import "import"
dotted_name
identifier "JSONRPC"
comment "# noqa: E402"
import_from_statement
from "from"
relative_import
import_prefix
. "."
dotted_name
identifier "xmlrpc"
import "import"
dotted_name
identifier "XMLRPC"
comment "# noqa: E402"
class_definition (+102 nodes collapsed)

After

module
import_statement
import "import"
dotted_name
identifier "odoo"
. "."
identifier "release"
import_from_statement
from "from"
dotted_name
identifier "odoo"
. "."
identifier "http"
import "import"
dotted_name
identifier "request"
, ","
dotted_name
identifier "route"
import_from_statement
from "from"
relative_import
import_prefix
. "."
import "import"
dotted_name
identifier "json2"
expression_statement
assignment
identifier "RPC_DEPRECATION_NOTICE"
= "="
string
string_start "\"\"\""
string_content
escape_sequence "\\\n"
escape_sequence "\\\n"
escape_sequence "\\\n"
string_end "\"\"\""
function_definition (+31 nodes collapsed)
import_from_statement
from "from"
relative_import
import_prefix
. "."
dotted_name
identifier "jsonrpc"
import "import"
dotted_name
identifier "JSONRPC"
comment "# noqa: E402"
import_from_statement
from "from"
relative_import
import_prefix
. "."
dotted_name
identifier "xmlrpc"
import "import"
dotted_name
identifier "XMLRPC"
comment "# noqa: E402"
class_definition (+102 nodes collapsed)