From 08cecb92f6eef0aed6ce6ce2c155d16df149da5a Mon Sep 17 00:00:00 2001 From: David Wilson Date: Wed, 23 Jan 2019 12:44:08 +0000 Subject: [PATCH] issue #477: Py2.4 lacks BaseException. --- mitogen/core.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mitogen/core.py b/mitogen/core.py index 28915ba6..4f5e15be 100644 --- a/mitogen/core.py +++ b/mitogen/core.py @@ -72,6 +72,11 @@ try: except ImportError: from io import BytesIO +try: + BaseException +except NameError: + BaseException = Exception + try: ModuleNotFoundError except NameError: