From 3e584e071b1c2684141ae3a347889c2108617790 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Mon, 16 Oct 2006 21:13:57 +0000 Subject: [PATCH] Remove use of whrandom module, which was removed in Python 2.5. --- src/pl/plpython/expected/plpython_function.out | 1 - src/pl/plpython/sql/plpython_function.sql | 1 - 2 files changed, 2 deletions(-) diff --git a/src/pl/plpython/expected/plpython_function.out b/src/pl/plpython/expected/plpython_function.out index 0e46741a27..e1ffa7302d 100644 --- a/src/pl/plpython/expected/plpython_function.out +++ b/src/pl/plpython/expected/plpython_function.out @@ -49,7 +49,6 @@ CREATE FUNCTION import_succeed() returns text import sha import string import time - import whrandom except Exception, ex: plpy.notice("import failed -- %s" % str(ex)) return "failed, that wasn''t supposed to happen" diff --git a/src/pl/plpython/sql/plpython_function.sql b/src/pl/plpython/sql/plpython_function.sql index 0450501eb9..224d5196a3 100644 --- a/src/pl/plpython/sql/plpython_function.sql +++ b/src/pl/plpython/sql/plpython_function.sql @@ -58,7 +58,6 @@ CREATE FUNCTION import_succeed() returns text import sha import string import time - import whrandom except Exception, ex: plpy.notice("import failed -- %s" % str(ex)) return "failed, that wasn''t supposed to happen" -- 2.40.0