Skip to content

Commit

Permalink
fix logging import plus a minor tidy up of utility func
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason R Briggs committed Sep 25, 2022
1 parent 0c9d45c commit 4348785
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion stomp/adapter/ws.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import errno
import logging
import math
import random
import sys
Expand Down Expand Up @@ -34,6 +33,7 @@ class SSLError(object):
from stomp.connect import BaseConnection, StompConnection12
from stomp.protocol import Protocol12
from stomp.exception import *
from stomp import logging


class WSTransport(BaseTransport):
Expand Down
3 changes: 1 addition & 2 deletions stomp/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,7 @@ def is_localhost(host_and_port):
(host, _) = host_and_port
if host in LOCALHOST_NAMES:
return 1
else:
return 2
return 2


_HEADER_ESCAPES = {
Expand Down
2 changes: 1 addition & 1 deletion tests/test_ipv6.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import stomp
from stomp.listener import TestListener
from stomp import logging
from .testutils import *

import logging


@pytest.fixture()
Expand Down
2 changes: 1 addition & 1 deletion tests/test_misc.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import importlib
import logging
import platform
import traceback
import xml.dom.minidom

import stomp
from stomp.exception import *
from stomp.listener import *
from stomp import logging
from .testutils import *


Expand Down
2 changes: 1 addition & 1 deletion tests/test_override_threading.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import logging
from concurrent.futures import ThreadPoolExecutor

import stomp
from stomp.listener import TestListener
from .testutils import *
from stomp import logging


executor = ThreadPoolExecutor()
Expand Down

0 comments on commit 4348785

Please sign in to comment.