Skip to content

Commit

Permalink
Remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
kirill-panoply committed Oct 14, 2024
1 parent b44ccb9 commit e993c26
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
4 changes: 1 addition & 3 deletions panoply/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import logging

from sys import stdout
from traceback import print_exception as _print_exception

Expand All @@ -9,7 +8,6 @@
from .sdk import *
from .ssh import SSHTunnel


logging.basicConfig(stream=stdout, format='%(levelname)s: %(message)s')


Expand All @@ -27,7 +25,7 @@ def custom_excepthook(args, /):
# silently ignore SystemExit
return

logging.error(f"Caught an exception in thread:")
logging.error("Caught an exception in thread:")
_print_exception(args.exc_type, args.exc_value, args.exc_traceback,
file=stdout)

Expand Down
2 changes: 1 addition & 1 deletion panoply/resources.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Optional, List, TypedDict, Dict
from typing import List, Optional, TypedDict


class Field(TypedDict):
Expand Down
9 changes: 4 additions & 5 deletions panoply/sdk.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
import base64
import json
import queue
import threading
import time
import urllib.request
import urllib.error
import urllib.parse
import threading
import queue
import logging
import urllib.request
from copy import copy
from .constants import __package_name__, __version__

from . import events
from .constants import __package_name__, __version__

MAXSIZE = 1024 * 250 # 250kib
FLUSH_TIMEOUT = 2.0 # 2 seconds
Expand Down

0 comments on commit e993c26

Please sign in to comment.