reorganize imports

This commit is contained in:
Oleg Silkin 2019-12-30 17:26:37 -05:00
parent deaa41e36e
commit 7dee7cc853
4 changed files with 14 additions and 14 deletions

View file

@ -1,12 +1,14 @@
import binascii import binascii
import logging
import hashlib import hashlib
import json import json
import sqlite3 import sqlite3
import asyncio import asyncio
import aiohttp import aiohttp
from src.server.misc import is_signature_valid, get_encoded_signature from server.validation import is_signature_valid, get_encoded_signature
logger = logging.getLogger(__name__)
async def request_lbrynet(url, method, **params): async def request_lbrynet(url, method, **params):

View file

@ -8,13 +8,10 @@ from src.database.queries import get_comment_or_none
from src.database.queries import hide_comments_by_id from src.database.queries import hide_comments_by_id
from src.database.queries import insert_channel from src.database.queries import insert_channel
from src.database.queries import insert_comment from src.database.queries import insert_comment
from src.server.misc import channel_matches_pattern_or_error, create_notification_batch from server.validation import is_valid_channel, is_valid_base_comment, is_valid_credential_input, \
from src.server.misc import is_valid_base_comment validate_signature_from_claim
from src.server.misc import is_valid_credential_input
from src.server.misc import send_notification
from src.server.misc import send_notifications
from src.server.misc import get_claim_from_id from src.server.misc import get_claim_from_id
from src.server.misc import validate_signature_from_claim from server.external import send_notifications, send_notification
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)

View file

@ -1,19 +1,16 @@
# cython: language_level=3 # cython: language_level=3
import asyncio
import logging import logging
import pathlib import pathlib
import signal import signal
import time import time
import queue
import aiojobs import aiojobs
import aiojobs.aiohttp import aiojobs.aiohttp
import asyncio
import aiohttp
from aiohttp import web from aiohttp import web
from src.database.queries import setup_database, backup_database
from src.database.queries import obtain_connection, DatabaseWriter from src.database.queries import obtain_connection, DatabaseWriter
from src.database.queries import setup_database, backup_database
from src.server.handles import api_endpoint, get_api_endpoint from src.server.handles import api_endpoint, get_api_endpoint
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)

View file

@ -1,6 +1,7 @@
import os import os
import random
import aiohttp import aiohttp
import re
from itertools import * from itertools import *
import faker import faker
@ -10,6 +11,9 @@ from faker.providers import misc
from src.settings import config from src.settings import config
from src.server import app from src.server import app
from src.server.validation import is_valid_channel
from src.server.validation import is_valid_base_comment
from test.testcase import AsyncioTestCase from test.testcase import AsyncioTestCase