mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Replace deprecated logging.warn with logging.warning (#10592)
This commit is contained in:
parent
852534312e
commit
20f52d9fa5
@ -93,9 +93,9 @@ def make_link_role(name: str, base_url: str, caption: str) -> RoleFunction:
|
||||
try:
|
||||
base_url % 'dummy'
|
||||
except (TypeError, ValueError):
|
||||
logger.warn(__('extlinks: Sphinx-6.0 will require base URL to '
|
||||
'contain exactly one \'%s\' and all other \'%\' need '
|
||||
'to be escaped as \'%%\'.')) # RemovedInSphinx60Warning
|
||||
logger.warning(__('extlinks: Sphinx-6.0 will require base URL to '
|
||||
'contain exactly one \'%s\' and all other \'%\' need '
|
||||
'to be escaped as \'%%\'.')) # RemovedInSphinx60Warning
|
||||
base_url = base_url.replace('%', '%%') + '%s'
|
||||
if caption is not None:
|
||||
try:
|
||||
|
@ -396,7 +396,7 @@ class SphinxComponentRegistry:
|
||||
|
||||
def add_latex_package(self, name: str, options: str, after_hyperref: bool = False) -> None:
|
||||
if self.has_latex_package(name):
|
||||
logger.warn("latex package '%s' already included" % name)
|
||||
logger.warning("latex package '%s' already included", name)
|
||||
|
||||
logger.debug('[app] adding latex package: %r', name)
|
||||
if after_hyperref:
|
||||
|
Loading…
Reference in New Issue
Block a user