Skip to content

Commit

Permalink
Make isort happy
Browse files Browse the repository at this point in the history
  • Loading branch information
mgedmin committed Oct 16, 2024
1 parent 8c31dc3 commit 64cb0bf
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
15 changes: 8 additions & 7 deletions src/irclog2html/irclogsearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,6 @@
from contextlib import closing
from urllib.parse import quote

try:
import cgi
import cgitb
except ImportError:
# Python 3.13 removed all CGI support
cgi = None

from .irclog2html import (
HOMEPAGE,
RELEASE,
Expand All @@ -49,6 +42,14 @@
from .logs2html import find_log_files


try:
import cgi
import cgitb
except ImportError:
# Python 3.13 removed all CGI support
cgi = None


DEFAULT_LOGFILE_PATH = os.path.dirname(__file__)
DEFAULT_LOGFILE_PATTERN = "*.log"

Expand Down
2 changes: 1 addition & 1 deletion src/irclog2html/irclogserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import os
import time
from operator import attrgetter
from urllib.parse import quote_plus, parse_qsl
from urllib.parse import parse_qsl, quote_plus
from wsgiref.simple_server import make_server

from ._version import __date__, __version__
Expand Down
1 change: 1 addition & 0 deletions src/irclog2html/tests/test_irclogsearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
search_page,
)


try:
import cgi
except ImportError:
Expand Down

0 comments on commit 64cb0bf

Please sign in to comment.