python: Fix Python 2.6 compatibility
authorLumir Balhar <lbalhar@redhat.com>
Wed, 11 Oct 2017 19:00:29 +0000 (21:00 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 18 Oct 2017 08:20:26 +0000 (10:20 +0200)
commit01e89ada251eb8bf0556568604298d56d9b41043
tree8fd7366443fa320974cfa990d196756e93a189ec
parent88dc82d1f9d8b415f8bc3dc4272a9c2c12e5ad80
python: Fix Python 2.6 compatibility

PyErr_NewExceptionWithDoc() isn't available in Python 2.6 so it can
be used only in higher versions of Python.

Signed-off-by: Lumir Balhar <lbalhar@redhat.com>
Reviewed-by: Andrew Bartlet <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
lib/pam_wrapper/python/pypamtest.c