void-packages/srcpkgs/mozjs102/patches/python3.12-looseversion.patch

23 lines
811 B
Diff

diff --git a/python/mozbuild/mozbuild/configure/util.py b/python/mozbuild/mozbuild/configure/util.py
index fe6f90f960661..31a6daa2e1fd1 100644
--- a/python/mozbuild/mozbuild/configure/util.py
+++ b/python/mozbuild/mozbuild/configure/util.py
@@ -14,7 +14,7 @@
import sys
from collections import deque
from contextlib import contextmanager
-from distutils.version import LooseVersion
+from looseversion import LooseVersion
def getpreferredencoding():
@@ -34,7 +34,7 @@ def getpreferredencoding():
class Version(LooseVersion):
- """A simple subclass of distutils.version.LooseVersion.
+ """A simple subclass of looseversion.LooseVersion.
Adds attributes for `major`, `minor`, `patch` for the first three
version components so users can easily pull out major/minor
versions, like: