mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-07 16:17:36 +08:00
Make PL/Python tests more compatible with Python 3
This changes a bunch of incidentially used constructs in the PL/Python regression tests to equivalent constructs in cases where Python 3 no longer supports the old syntax. Support for older Python versions is unchanged.
This commit is contained in:
@ -10,7 +10,7 @@ select stupid();
|
||||
-- test multiple arguments
|
||||
CREATE FUNCTION argument_test_one(u users, a1 text, a2 text) RETURNS text
|
||||
AS
|
||||
'keys = u.keys()
|
||||
'keys = list(u.keys())
|
||||
keys.sort()
|
||||
out = []
|
||||
for key in keys:
|
||||
|
||||
Reference in New Issue
Block a user