Skip to content

Commit

Permalink
sorted imports using isort
Browse files Browse the repository at this point in the history
  • Loading branch information
k4yt3x committed Mar 1, 2022
1 parent f775688 commit 083af60
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 17 deletions.
5 changes: 2 additions & 3 deletions video2x/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
# 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
5 changes: 1 addition & 4 deletions video2x/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,9 @@
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())
13 changes: 5 additions & 8 deletions video2x/decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,26 +19,23 @@
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
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 = {
Expand All @@ -59,7 +56,7 @@ def __init__(
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:
Expand Down
3 changes: 1 addition & 2 deletions video2x/pipe_printer.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,11 @@
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):
Expand Down

0 comments on commit 083af60

Please sign in to comment.