Modernize Python exception syntax in documentation
authorPeter Eisentraut <peter@eisentraut.org>
Tue, 31 Dec 2019 09:35:16 +0000 (10:35 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Tue, 31 Dec 2019 09:35:16 +0000 (10:35 +0100)
commitb55413d77f96b9fa2dfae4ddec43412b90ebf588
treef76c0fcc03ea35541ef6ebe6b2df6dfa1f8c57f1
parent0ce38730ac72029f3f2c95ae80b44f5b9060cbcc
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.
doc/src/sgml/plpython.sgml