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:
@@ -6,7 +6,7 @@ import sys, os
|
||||
|
||||
try:
|
||||
import setuptools
|
||||
except ModuleNotFoundError:
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
from distutils.core import setup, Extension
|
||||
|
Reference in New Issue
Block a user