Since https://github.com/python/cpython/issues/76960 if the path of the URI
does not start with a '/', the netloc is removed.
Closes#13543
(grafted from 6d420b9f4bffc77dc599abff4b7f8e17a061542d)
--HG--
branch : 7.0
If there are no connection available in the pool, psycopg2 tries to create a
new connection but it may raise an OperationalError if the server close it.
Closes#13475
(grafted from cecbc1736f2d0fdd8a77c1dcdfe81e23cf99f451)
--HG--
branch : 7.0
The file_open tools may be used to create a file so it may not yet exist.
Also io.open will raise the proper exception if the file can not be open.
Closes#13230
(grafted from ad09f3e55f6f7bd6767ea44d03566322fce6b487)
--HG--
branch : 7.0
The module path is used later to join path so it must be a string.
Closes#13229
(grafted from 1cbc97959ca439d5ac1335240863ca8104c41969)
--HG--
branch : 7.0
Even if the backend allows NOTIFY query on readonly transaction, it is strange
to commit readonly transaction because the backend may not enforce the
readonly.
Also commit performs other actions that may not be wanted like commit
datamanager or clear cache.
A procedure that requires to perform a NOTIFY should have a non-readonly
transaction.
Closes#12542
(grafted from 03611153e9bc9a0d169447c4ca946ad49c81ad47)
--HG--
branch : 7.0
As model can inherit the access rules from another, the key must include the
keys of those other models.
Closes#13162
(grafted from b04f36d27c78663851f6859e266aac203afd7600)
--HG--
branch : 7.0
If user_id is accessed before view_args has been setup, we should not cache
`None` as value but instead raise an exception.
The `user_id` may be accessed before the mapping if the request is logged
because the representation of the request used the `rpc_method` which needs to
parse the request data. But since 1923117e935d parsing compressed content is
only allowed for request with `user_id`.
So we can no more include the `rpc_method` is the request has not yet been
mapped and so it has a `view_args`.
Closes#13203
(grafted from 0630029c1d5a0a2c7bd45086957f2e0fbed4c427)
--HG--
branch : 7.0
The Function fields are not copied so it is the storage field that must have a
default value.
Closes#13170
(grafted from 96d629fe11a710b395d9981881c5dfda1674becf)
--HG--
branch : 7.0
In Python bool type is a subtype of integer so it must be tested first.
Also by converting other types to int, we catch any other wrong types.
Closes#13133
(grafted from 2c7c6983eecc716cddc3dcfce7c417e902257df0)
--HG--
branch : 7.0
The commit call was added by a6624f31ff20 to release lock because Cache.resets
was called inside the transaction.
But Cache.resets was removed in a83631f4ba67 and Cache does not create any new
transaction since.
And since 2fd8c5f88265 the transaction is even committed only on module
update.
(grafted from 0548d73c7ce3b4e07b6b76007f2592ed2be945ff)
--HG--
branch : 7.0