[GitHub] [qpid-dispatch] ChugR commented on a change in pull request #1058: DISPATCH-1974 Remove flake8 suppressions and fix import issues F401 and F403

2021-03-03 Thread GitBox


ChugR commented on a change in pull request #1058:
URL: https://github.com/apache/qpid-dispatch/pull/1058#discussion_r586522506



##
File path: tests/system_tests_tcp_adaptor.py
##
@@ -61,7 +55,7 @@ class TCP_echo_server(object):
 DISABLE_SELECTOR_TESTS = False
 DISABLE_SELECTOR_REASON = ''
 try:
-import selectors
+import selectors  # noqa F401: 'selectors' imported but unused

Review comment:
   In order to run these tests the echo server and echo client must be run 
as subprocesses. And those programs use selectors. This test can't work without 
selectors even though it doesn't use them directly.





This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[GitHub] [qpid-dispatch] ChugR commented on a change in pull request #1058: DISPATCH-1974 Remove flake8 suppressions and fix import issues F401 and F403

2021-03-03 Thread GitBox


ChugR commented on a change in pull request #1058:
URL: https://github.com/apache/qpid-dispatch/pull/1058#discussion_r586511406



##
File path: python/qpid_dispatch_internal/display_name/display_name.py
##
@@ -29,14 +29,10 @@
 from __future__ import absolute_import
 from __future__ import print_function
 
-
+import json
 import traceback
-from traceback import format_exc
 
-from ..router.message import Message
-
-from ..dispatch import IoAdapter, LogAdapter, LOG_INFO, LOG_ERROR, LOG_TRACE, 
LOG_STACK_LIMIT
-import json
+from qpid_dispatch_internal import dispatch

Review comment:
   agreed





This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org