Browse Source

Remove even more unused imports

pull/1894/merge
Safihre 4 years ago
parent
commit
04cd67b98b
  1. 4
      SABnzbd.py
  2. 4
      sabnzbd/__init__.py
  3. 1
      sabnzbd/api.py
  4. 1
      sabnzbd/assembler.py
  5. 1
      sabnzbd/interface.py
  6. 3
      sabnzbd/notifier.py
  7. 1
      sabnzbd/osxmenu.py
  8. 2
      sabnzbd/postproc.py
  9. 2
      sabnzbd/scheduler.py
  10. 1
      sabnzbd/urlgrabber.py
  11. 1
      tests/test_urlgrabber.py

4
SABnzbd.py

@ -94,7 +94,6 @@ from sabnzbd.filesystem import get_ext, real_path, long_path, globber_full, remo
from sabnzbd.panic import panic_tmpl, panic_port, panic_host, panic, launch_a_browser
import sabnzbd.config as config
import sabnzbd.cfg
import sabnzbd.downloader
import sabnzbd.notifier as notifier
import sabnzbd.zconfig
from sabnzbd.getipaddress import localipv4, publicipv4, ipv6
@ -108,11 +107,10 @@ try:
import win32event
import win32service
import win32ts
import pywintypes
import servicemanager
from win32com.shell import shell, shellcon
from sabnzbd.utils.apireg import get_connection_info, set_connection_info, del_connection_info
from sabnzbd.utils.apireg import get_connection_info, set_connection_info
import sabnzbd.sabtray
win32api.SetConsoleCtrlHandler(sabnzbd.sig_handler, True)

4
sabnzbd/__init__.py

@ -121,10 +121,6 @@ from sabnzbd.constants import (
DEFAULT_PRIORITY,
VALID_ARCHIVES,
REPAIR_REQUEST,
QUEUE_FILE_NAME,
QUEUE_VERSION,
QUEUE_FILE_TMPL,
Status,
)
import sabnzbd.utils.ssdp

1
sabnzbd/api.py

@ -67,7 +67,6 @@ from sabnzbd.getipaddress import localipv4, publicipv4, ipv6, addresslookup
from sabnzbd.database import build_history_info, unpack_history_info, HistoryDB
from sabnzbd.lang import is_rtl
import sabnzbd.notifier
import sabnzbd.rss
import sabnzbd.emailer
import sabnzbd.sorting

1
sabnzbd/assembler.py

@ -40,7 +40,6 @@ from sabnzbd.filesystem import (
from sabnzbd.constants import Status, GIGI, MAX_ASSEMBLER_QUEUE
import sabnzbd.cfg as cfg
from sabnzbd.nzbstuff import NzbObject, NzbFile
import sabnzbd.downloader
import sabnzbd.par2file as par2file
import sabnzbd.utils.rarfile as rarfile

1
sabnzbd/interface.py

@ -24,7 +24,6 @@ import time
from datetime import datetime
import cherrypy
import logging
import urllib.request, urllib.parse, urllib.error
import re
import hashlib
import socket

3
sabnzbd/notifier.py

@ -23,7 +23,8 @@ sabnzbd.notifier - Send notifications to any notification services
import os.path
import logging
import urllib.request, urllib.error, urllib.parse
import urllib.request
import urllib.parse
import http.client
import json
from threading import Thread

1
sabnzbd/osxmenu.py

@ -38,7 +38,6 @@ from sabnzbd.panic import launch_a_browser
from sabnzbd.api import fast_queue
import sabnzbd.config as config
import sabnzbd.downloader
status_icons = {
"idle": "icons/sabnzbd_osx_idle.tiff",

2
sabnzbd/postproc.py

@ -78,10 +78,8 @@ from sabnzbd.constants import (
)
from sabnzbd.nzbparser import process_single_nzb
import sabnzbd.emailer as emailer
import sabnzbd.downloader
import sabnzbd.config as config
import sabnzbd.cfg as cfg
import sabnzbd.nzbqueue
import sabnzbd.database as database
import sabnzbd.notifier as notifier
import sabnzbd.utils.rarfile as rarfile

2
sabnzbd/scheduler.py

@ -25,9 +25,7 @@ import time
from typing import Optional
import sabnzbd.utils.kronos as kronos
import sabnzbd.rss
import sabnzbd.downloader
import sabnzbd.dirscanner
import sabnzbd.misc
import sabnzbd.config as config
import sabnzbd.cfg as cfg

1
sabnzbd/urlgrabber.py

@ -25,7 +25,6 @@ import time
import logging
import queue
import urllib.request
import urllib.error
import urllib.parse
from http.client import IncompleteRead, HTTPResponse
from mailbox import Message

1
tests/test_urlgrabber.py

@ -25,7 +25,6 @@ import urllib.parse
import pytest_httpbin
import sabnzbd.urlgrabber as urlgrabber
import sabnzbd.version
from sabnzbd.cfg import selftest_host
from tests.testhelper import *

Loading…
Cancel
Save