From: Peter Eisentraut Date: Mon, 16 Oct 2006 21:13:57 +0000 (+0000) Subject: Remove use of whrandom module, which was removed in Python 2.5. X-Git-Tag: REL8_2_BETA2~47 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3e584e071b1c2684141ae3a347889c2108617790;p=postgresql Remove use of whrandom module, which was removed in Python 2.5. --- 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"