issue #477: Py2.4 lacks BaseException.

This commit is contained in:
David Wilson 2019-01-23 12:44:08 +00:00
parent 4388e794ce
commit 08cecb92f6
1 changed files with 5 additions and 0 deletions

View File

@ -72,6 +72,11 @@ try:
except ImportError:
from io import BytesIO
try:
BaseException
except NameError:
BaseException = Exception
try:
ModuleNotFoundError
except NameError: