summaryrefslogtreecommitdiff
path: root/src/pl/plpython/expected/plpython_import.out
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2020-01-08 21:48:44 +0100
committerPeter Eisentraut <peter@eisentraut.org>2020-01-08 22:47:22 +0100
commit45223fd9cefe483daa4af7740f15c004486636eb (patch)
treecd00580944d074ca0e22aad5fde3a79d58d5f274 /src/pl/plpython/expected/plpython_import.out
parent37f21ed132d1c5aee88e81fee0a0b7e735673d35 (diff)
downloadpostgresql-45223fd9cefe483daa4af7740f15c004486636eb.tar.gz
Modernize Python exception syntax in tests
Change the exception syntax used in the tests to use the more current except Exception as ex: rather than the old except Exception, ex: Since support for Python <2.6 has been removed, all supported versions now support the new style, and we can save one step in the Python 3 compatibility conversion. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://www.postgresql.org/message-id/flat/98b69261-298c-13d2-f34d-836fd9c29b21%402ndquadrant.com
Diffstat (limited to 'src/pl/plpython/expected/plpython_import.out')
-rw-r--r--src/pl/plpython/expected/plpython_import.out2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pl/plpython/expected/plpython_import.out b/src/pl/plpython/expected/plpython_import.out
index 1d981eacf1..b59e1821a7 100644
--- a/src/pl/plpython/expected/plpython_import.out
+++ b/src/pl/plpython/expected/plpython_import.out
@@ -21,7 +21,7 @@ CREATE FUNCTION import_succeed() returns text
import re
import string
import time
-except Exception, ex:
+except Exception as ex:
plpy.notice("import failed -- %s" % str(ex))
return "failed, that wasn''t supposed to happen"
return "succeeded, as expected"'