Skip to content

Commit

Permalink
cleaning up imports
Browse files Browse the repository at this point in the history
  • Loading branch information
glaslos committed Jun 12, 2021
1 parent b51247d commit e2a374f
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ docs/_build/

# Developer
.idea/
.venv
.vscode
.venv/
.vscode/

Snare.egg-info/
build/
Expand Down
5 changes: 2 additions & 3 deletions bin/snare
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,11 @@ import pwd
import sys
import time
import uuid
from concurrent.futures import ProcessPoolExecutor

import aiohttp
import pip

import git
from concurrent.futures import ProcessPoolExecutor

from snare.server import HttpRequestHandler
from snare.utils import snare_helpers
from snare.utils.logger import Logger
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
url="https://github.com/mushorg/snare",
packages=find_packages(exclude=["*.pyc"]),
scripts=["./bin/snare", "./bin/clone"],
)
)
4 changes: 2 additions & 2 deletions snare/cloner.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
import sys
import logging
import asyncio
from asyncio import Queue
import hashlib
import json
import re
from collections import defaultdict
import aiohttp
import cssutils
import yarl
from bs4 import BeautifulSoup
from asyncio import Queue
from collections import defaultdict

animation = "|/-\\"

Expand Down
2 changes: 1 addition & 1 deletion snare/html_handler.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import asyncio
import json
import logging
from bs4 import BeautifulSoup
import cssutils
import aiohttp
from bs4 import BeautifulSoup


class HtmlHandler:
Expand Down
7 changes: 4 additions & 3 deletions snare/server.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import logging
import json
import aiohttp
from aiohttp import web
from aiohttp.web import StaticResource as StaticRoute
import aiohttp_jinja2
import jinja2

from aiohttp import web
from aiohttp.web import StaticResource as StaticRoute

from snare.middlewares import SnareMiddleware
from snare.tanner_handler import TannerHandler

Expand Down
3 changes: 2 additions & 1 deletion snare/tanner_handler.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import re
import os
from urllib.parse import unquote
import multidict
import json
import logging
import aiohttp

from urllib.parse import unquote
from bs4 import BeautifulSoup
from snare.html_handler import HtmlHandler

Expand Down
1 change: 0 additions & 1 deletion snare/utils/asyncmock.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import asyncio
from unittest.mock import Mock


Expand Down
2 changes: 1 addition & 1 deletion snare/utils/snare_helpers.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import os
from os import walk
import hashlib
import mimetypes
import json
import shutil
import argparse
import logging
from os import walk
from distutils.version import StrictVersion
from bs4 import BeautifulSoup

Expand Down

0 comments on commit e2a374f

Please sign in to comment.