From b51db3ce3ff538133a9ec6f67cd2f8d49d633c46 Mon Sep 17 00:00:00 2001 From: Micah Walter Date: Wed, 28 Nov 2018 14:46:47 -0500 Subject: [PATCH] Adapt exceptions module for Python 3 --- python/pymei/exceptions.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/python/pymei/exceptions.py b/python/pymei/exceptions.py index bbb523f1..28a8a825 100644 --- a/python/pymei/exceptions.py +++ b/python/pymei/exceptions.py @@ -19,4 +19,9 @@ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -from _libmei_exceptions import * \ No newline at end of file +from sys import version_info + +if version_info.major >= 3: + from ._libmei_exceptions import * +else: + from _libmei_exceptions import *