Run isort on project

Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
Alfred Wingate
2023-11-14 23:04:18 +02:00
parent d860708ec9
commit 70f88ed37d
21 changed files with 99 additions and 83 deletions

View File

@ -1,11 +1,11 @@
import os
import sys
import pkgutil
from euscan import CONFIG, output
import sys
from portage.xml.metadata import MetaDataXML
from euscan import CONFIG, output
handlers = {"package": [], "url": [], "all": {}}
# autoimport all modules in this directory and append them to handlers list

View File

@ -1,11 +1,13 @@
import re
import urllib.request, urllib.parse, urllib.error
import urllib.error
import urllib.parse
import urllib.request
import portage
from euscan.helpers import regex_from_template
from euscan.handlers.url import process_scan as url_scan
from euscan import output
from euscan.handlers.url import process_scan as url_scan
from euscan.helpers import regex_from_template
HANDLER_NAME = "berlios"
CONFIDENCE = 90

View File

@ -1,9 +1,12 @@
import re
import portage
import urllib.request, urllib.error, urllib.parse
import json
import re
import urllib.error
import urllib.parse
import urllib.request
from euscan import helpers, output, mangling
import portage
from euscan import helpers, mangling, output
HANDLER_NAME = "cpan"
CONFIDENCE = 100

View File

@ -1,11 +1,13 @@
import urllib.request, urllib.parse, urllib.error
import re
import bz2
import re
import urllib.error
import urllib.parse
import urllib.request
import zlib
import portage
from euscan import mangling, helpers, output
from euscan import helpers, mangling, output
HANDLER_NAME = "deb"
CONFIDENCE = 100

View File

@ -1,9 +1,11 @@
import urllib.request, urllib.parse, urllib.error
import re
import urllib.error
import urllib.parse
import urllib.request
import portage
from euscan import mangling, helpers, output
from euscan import helpers, mangling, output
HANDLER_NAME = "freecode"
CONFIDENCE = 100

View File

@ -1,8 +1,10 @@
from urllib.parse import urljoin, urlparse
import urllib.request, urllib.error, urllib.parse
import re
import io
import difflib
import io
import re
import urllib.error
import urllib.parse
import urllib.request
from urllib.parse import urljoin, urlparse
try:
from BeautifulSoup import BeautifulSoup
@ -12,13 +14,13 @@ except ImportError:
import portage
from euscan import (
output,
helpers,
mangling,
CONFIG,
SCANDIR_BLACKLIST_URLS,
BRUTEFORCE_BLACKLIST_PACKAGES,
BRUTEFORCE_BLACKLIST_URLS,
CONFIG,
SCANDIR_BLACKLIST_URLS,
helpers,
mangling,
output,
)
HANDLER_NAME = "generic"

View File

@ -1,10 +1,12 @@
import json
import urllib.request, urllib.error, urllib.parse
import re
import urllib.error
import urllib.parse
import urllib.request
import portage
from euscan import helpers, output, mangling
from euscan import helpers, mangling, output
HANDLER_NAME = "github"
CONFIDENCE = 100

View File

@ -1,7 +1,9 @@
# -*- coding: utf-8 -*-
import re
import urllib.request, urllib.error, urllib.parse
import urllib.error
import urllib.parse
import urllib.request
try:
import simplejson as json
@ -10,7 +12,7 @@ except ImportError:
import portage
from euscan import mangling, helpers, output
from euscan import helpers, mangling, output
HANDLER_NAME = "gnome"
CONFIDENCE = 100

View File

@ -1,9 +1,10 @@
import re
import portage
from euscan import output
from euscan.helpers import regex_from_template
from euscan.handlers.url import process_scan as url_scan
from euscan.helpers import regex_from_template
HANDLER_NAME = "google-code"
CONFIDENCE = 90

View File

@ -1,9 +1,12 @@
import re
import portage
import urllib.request, urllib.error, urllib.parse
import urllib.error
import urllib.parse
import urllib.request
import xml.dom.minidom
from euscan import helpers, output, mangling
import portage
from euscan import helpers, mangling, output
HANDLER_NAME = "php"
CONFIDENCE = 100

View File

@ -1,9 +1,9 @@
import xmlrpc.client
import re
import xmlrpc.client
import portage
from euscan import mangling, helpers, output
from euscan import helpers, mangling, output
HANDLER_NAME = "pypi"
CONFIDENCE = 100

View File

@ -1,9 +1,12 @@
import re
import portage
import json
import urllib.request, urllib.error, urllib.parse
import re
import urllib.error
import urllib.parse
import urllib.request
from euscan import helpers, output, mangling
import portage
from euscan import helpers, mangling, output
HANDLER_NAME = "rubygems"
CONFIDENCE = 100

View File

@ -2,9 +2,9 @@ import re
import portage
from euscan.helpers import regex_from_template
from euscan.handlers.url import process_scan as url_scan
from euscan import output
from euscan.handlers.url import process_scan as url_scan
from euscan.helpers import regex_from_template
HANDLER_NAME = "sourceforge"
CONFIDENCE = 90

View File

@ -1,8 +1,10 @@
import re
import urllib.request, urllib.error, urllib.parse
import urllib.error
import urllib.parse
import urllib.request
from euscan import helpers, output
from euscan.handlers import generic
from euscan import output, helpers
PRIORITY = 100