1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-21 14:53:44 +03:00

Fix build with older Python versions

ModuleNotFoundError is only available since Python 3.6. Use the
superclass ImportError instead. Fixes commit 3cc64a89.

Fixes #347.
This commit is contained in:
Nick Wellnhofer
2022-02-24 18:34:39 +01:00
parent c41bc10da3
commit 5bc5f0762f

View File

@@ -6,7 +6,7 @@ import sys, os
try:
import setuptools
except ModuleNotFoundError:
except ImportError:
pass
from distutils.core import setup, Extension