mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
refactor: Reduce usages of distutils (refs: #9820)
distutils module is now deprecated and will be removed since Python 3.12. So this reduces the usages of the module.
This commit is contained in:
parent
f38bd8e952
commit
0ba202009d
5
setup.py
5
setup.py
@ -1,6 +1,5 @@
|
||||
import os
|
||||
import sys
|
||||
from distutils import log
|
||||
from io import StringIO
|
||||
|
||||
from setuptools import find_packages, setup
|
||||
@ -148,8 +147,8 @@ else:
|
||||
if catalog.fuzzy and not self.use_fuzzy:
|
||||
continue
|
||||
|
||||
log.info('writing JavaScript strings in catalog %r to %r',
|
||||
po_file, js_file)
|
||||
self.log.info('writing JavaScript strings in catalog %r to %r',
|
||||
po_file, js_file)
|
||||
|
||||
jscatalog = {}
|
||||
for message in catalog:
|
||||
|
@ -1,4 +1,4 @@
|
||||
from distutils.core import setup
|
||||
from setuptools import setup
|
||||
|
||||
from sphinx.setup_command import BuildDoc
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user