Merge pull request #11207 from dan-masek:add_redirect_error
authorDan Mašek <dan.masek@gmail.com>
Tue, 3 Apr 2018 18:16:34 +0000 (20:16 +0200)
committerAlexander Alekhin <alexander.a.alekhin@gmail.com>
Tue, 3 Apr 2018 18:16:34 +0000 (21:16 +0300)
commit8c1d8eccdd73d24a83f096e9648aba2f8fe50eb5
tree1672c1939827888ce6878c86f29472be3071c252
parentf95e91e2bc73d4bc05dd0d4fce7831f4524444de
Merge pull request #11207 from dan-masek:add_redirect_error

* Add Python support for error message handlers.

* Move the static variable to the only function that uses it.

* Remove the optional param (user data), since this can already be handled by closures.

* Correct the help string.

* python: added redirectError test
modules/python/src2/cv2.cpp
modules/python/test/test_misc.py