sorted imports using isort

This commit is contained in:
k4yt3x 2022-03-01 21:11:50 +00:00
parent f7756886e7
commit 083af60c6f
4 changed files with 9 additions and 17 deletions

View File

@ -26,7 +26,6 @@ Last Modified: February 16, 2022
# prevent setup.cfg from producing import errors
__version__ = "5.0.0-beta5"
# local imports
from .video2x import Video2X
from .upscaler import Upscaler
from .interpolator import Interpolator
from .upscaler import Upscaler
from .video2x import Video2X

View File

@ -22,12 +22,9 @@ Date Created: July 3, 2021
Last Modified: February 26, 2022
"""
# local imports
from .video2x import main
# built-in imports
import sys
from .video2x import main
if __name__ == "__main__":
sys.exit(main())

View File

@ -19,14 +19,11 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
Name: Video Decoder
Author: K4YT3X
Date Created: June 17, 2021
Last Modified: February 28, 2022
Last Modified: March 1, 2022
"""
# local imports
from .pipe_printer import PipePrinter
# built-in imports
import contextlib
import multiprocessing
import os
import pathlib
import queue
@ -34,11 +31,11 @@ import signal
import subprocess
import threading
# third-party imports
import ffmpeg
from loguru import logger
from PIL import Image
import ffmpeg
from .pipe_printer import PipePrinter
# map Loguru log levels to FFmpeg log levels
LOGURU_FFMPEG_LOGLEVELS = {
@ -59,7 +56,7 @@ class VideoDecoder(threading.Thread):
input_width: int,
input_height: int,
frame_rate: float,
processing_queue: queue.Queue,
processing_queue: multiprocessing.Queue,
processing_settings: tuple,
ignore_max_image_pixels=True,
) -> None:

View File

@ -22,12 +22,11 @@ Date Created: February 27, 2022
Last Modified: February 28, 2022
"""
# built-in imports
from typing import IO
import os
import sys
import threading
import time
from typing import IO
class PipePrinter(threading.Thread):