From 51b40f03a4001eaa0fe42df8f6567abe4bd32d21 Mon Sep 17 00:00:00 2001
From: Andrew Dunstan <andrew@dunslane.net>
Date: Sat, 27 May 2006 12:39:11 +0000
Subject: Looks like the new plpython regression test fails on older pythons.
 See if this works.

---
 src/pl/plpython/sql/plpython_function.sql | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'src/pl/plpython/sql/plpython_function.sql')

diff --git a/src/pl/plpython/sql/plpython_function.sql b/src/pl/plpython/sql/plpython_function.sql
index 73b1a654055..e31af9f9877 100644
--- a/src/pl/plpython/sql/plpython_function.sql
+++ b/src/pl/plpython/sql/plpython_function.sql
@@ -151,7 +151,9 @@ CREATE FUNCTION trigger_data() returns trigger language plpythonu as $$
 if TD.has_key('relid'):
 	TD['relid'] = "bogus:12345"
 
-for key in sorted(TD.keys()):
+skeys = TD.keys()
+skeys.sort()
+for key in skeys:
 	val = TD[key]
 	plpy.notice("TD[" + key + "] => " + str(val))
 
-- 
cgit v1.2.3

