Skip to content

Commit

Permalink
ruff: linting fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
jayaddison committed Sep 23, 2023
1 parent bc3c390 commit 37634b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions sphinx/builders/linkcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
import re
import socket
import time
import warnings
from html.parser import HTMLParser
from os import path
from queue import PriorityQueue, Queue
from threading import Thread
from typing import TYPE_CHECKING, NamedTuple, cast
from urllib.parse import unquote, urlparse, urlsplit, urlunparse
import warnings

from docutils import nodes
from requests.exceptions import ConnectionError, HTTPError, SSLError, TooManyRedirects
Expand Down Expand Up @@ -300,7 +300,7 @@ def __init__(self, config: Config,
"reported as broken (equivalent to setting the option to `False`). "
"See sphinx-doc/sphinx#11433 for details."
)
warnings.warn(deprecation_msg , RemovedInSphinx80Warning)
warnings.warn(deprecation_msg, RemovedInSphinx80Warning, stacklevel=1)

super().__init__(daemon=True)

Expand Down
2 changes: 1 addition & 1 deletion tests/test_build_linkcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
import sys
import textwrap
import time
import warnings
import wsgiref.handlers
from base64 import b64encode
from os import path
from queue import Queue
from unittest import mock
import warnings

import pytest
from urllib3.poolmanager import PoolManager
Expand Down

0 comments on commit 37634b1

Please sign in to comment.