Skip to content

Commit

Permalink
sort imports
Browse files Browse the repository at this point in the history
  • Loading branch information
adbar committed Oct 4, 2024
1 parent 843d079 commit 28988f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion trafilatura/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
url_processing_pipeline, write_result)
from .settings import PARALLEL_CORES, SUPPORTED_FMT_CLI


# fix output encoding on some systems
if sys.stdout.encoding != 'UTF-8':
sys.stdout.reconfigure(encoding='utf-8')
Expand Down
9 changes: 5 additions & 4 deletions trafilatura/downloads.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@
from concurrent.futures import ThreadPoolExecutor, as_completed
from configparser import ConfigParser
from functools import partial
from io import BytesIO
from importlib.metadata import version
from io import BytesIO
from time import sleep
from typing import Any, ByteString, Dict, Generator, List, Optional, Set, Tuple, Union
from typing import (Any, ByteString, Dict, Generator, List, Optional, Set,
Tuple, Union)

import certifi
import urllib3
Expand All @@ -22,8 +23,8 @@
from courlan.network import redirection_test

from .settings import DEFAULT_CONFIG, Extractor
from .utils import URL_BLACKLIST_REGEX, decode_file, is_acceptable_length, make_chunks

from .utils import (URL_BLACKLIST_REGEX, decode_file, is_acceptable_length,
make_chunks)

try:
from urllib3.contrib.socks import SOCKSProxyManager
Expand Down

0 comments on commit 28988f5

Please sign in to comment.