pgsql: Modernize Python exception syntax in documentation

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Modernize Python exception syntax in documentation
Date: 2019-12-31 09:44:37
Message-ID: E1imE4r-0000Ye-1w@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Modernize Python exception syntax in documentation

Change the exception syntax used in the documentation to use the more
current

except Exception as ex:

rather than the old

except Exception, ex:

We keep the old syntax in the test code since Python <2.6 is still
supported there, but the documentation might as well use the modern
syntax.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/b55413d77f96b9fa2dfae4ddec43412b90ebf588

Modified Files
--------------
doc/src/sgml/plpython.sgml | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2020-01-01 17:22:01 pgsql: Update copyrights for 2020
Previous Message Andrew Dunstan 2019-12-31 04:24:46 Fwd: pgsql: Emit parameter values during query bind/execute errors