From 3129ef8135816d274169b70046cf9631e2372812 Mon Sep 17 00:00:00 2001 From: Felix Date: Tue, 8 Jun 2021 16:52:34 +0200 Subject: [PATCH 1/3] remove unused import --- can/interfaces/gs_usb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/can/interfaces/gs_usb.py b/can/interfaces/gs_usb.py index ff6ba634e..447cdf47f 100644 --- a/can/interfaces/gs_usb.py +++ b/can/interfaces/gs_usb.py @@ -1,4 +1,4 @@ -from typing import cast, Any, Iterator, List, Optional, Sequence, Tuple, Union +from typing import Optional, Tuple from gs_usb.gs_usb import GsUsb from gs_usb.gs_usb_frame import GsUsbFrame From 6a1068ea12af1ebb7d1aebd821e0e79c3c2ee60c Mon Sep 17 00:00:00 2001 From: Felix Date: Tue, 8 Jun 2021 16:53:07 +0200 Subject: [PATCH 2/3] remove remaining 'coding: utf-8' comments --- can/interfaces/nixnet.py | 1 - test/__init__.py | 1 - test/back2back_test.py | 1 - test/config.py | 1 - test/contextmanager_test.py | 1 - test/data/__init__.py | 1 - test/data/example_data.py | 1 - test/listener_test.py | 1 - test/logformats_test.py | 1 - test/message_helper.py | 1 - test/network_test.py | 1 - test/notifier_test.py | 1 - test/serial_test.py | 1 - test/simplecyclic_test.py | 1 - test/test_kvaser.py | 1 - 15 files changed, 15 deletions(-) diff --git a/can/interfaces/nixnet.py b/can/interfaces/nixnet.py index f8b54ea4e..5ace32553 100644 --- a/can/interfaces/nixnet.py +++ b/can/interfaces/nixnet.py @@ -1,4 +1,3 @@ -# coding: utf-8 """ NI-XNET interface module. diff --git a/test/__init__.py b/test/__init__.py index 394a0a067..4265cc3e6 100644 --- a/test/__init__.py +++ b/test/__init__.py @@ -1,2 +1 @@ #!/usr/bin/env python -# coding: utf-8 diff --git a/test/back2back_test.py b/test/back2back_test.py index 1950c5fa5..66104a43e 100644 --- a/test/back2back_test.py +++ b/test/back2back_test.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -# coding: utf-8 """ This module tests two buses attached to each other. diff --git a/test/config.py b/test/config.py index 58ad780fc..fc1bca6c2 100644 --- a/test/config.py +++ b/test/config.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -# coding: utf-8 """ This module contains various configuration for the tests. diff --git a/test/contextmanager_test.py b/test/contextmanager_test.py index 95785b128..014dfb121 100644 --- a/test/contextmanager_test.py +++ b/test/contextmanager_test.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -# coding: utf-8 """ This module tests the context manager of Bus and Notifier classes diff --git a/test/data/__init__.py b/test/data/__init__.py index 394a0a067..4265cc3e6 100644 --- a/test/data/__init__.py +++ b/test/data/__init__.py @@ -1,2 +1 @@ #!/usr/bin/env python -# coding: utf-8 diff --git a/test/data/example_data.py b/test/data/example_data.py index d642887cf..d41544334 100644 --- a/test/data/example_data.py +++ b/test/data/example_data.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -# coding: utf-8 """ This module contains some example data, like messages of different diff --git a/test/listener_test.py b/test/listener_test.py index 83b4a63fc..e5abd94a2 100644 --- a/test/listener_test.py +++ b/test/listener_test.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -# coding: utf-8 """ """ diff --git a/test/logformats_test.py b/test/logformats_test.py index 8bdb4c215..ae3106aa7 100644 --- a/test/logformats_test.py +++ b/test/logformats_test.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -# coding: utf-8 """ This test module test the separate reader/writer combinations of the can.io.* diff --git a/test/message_helper.py b/test/message_helper.py index 5f437dbde..1e7989156 100644 --- a/test/message_helper.py +++ b/test/message_helper.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -# coding: utf-8 """ This module contains a helper for writing test cases that need to compare messages. diff --git a/test/network_test.py b/test/network_test.py index ad02fae41..a4e40e901 100644 --- a/test/network_test.py +++ b/test/network_test.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -# coding: utf-8 import unittest diff --git a/test/notifier_test.py b/test/notifier_test.py index 0a60bd25d..c9d8f4a27 100644 --- a/test/notifier_test.py +++ b/test/notifier_test.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -# coding: utf-8 import unittest import time diff --git a/test/serial_test.py b/test/serial_test.py index 29f1ea2b3..c9c035634 100644 --- a/test/serial_test.py +++ b/test/serial_test.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -# coding: utf-8 """ This module is testing the serial interface. diff --git a/test/simplecyclic_test.py b/test/simplecyclic_test.py index 82f0850a7..4b9ded43f 100644 --- a/test/simplecyclic_test.py +++ b/test/simplecyclic_test.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -# coding: utf-8 """ This module tests cyclic send tasks. diff --git a/test/test_kvaser.py b/test/test_kvaser.py index 3acc2731d..2637ae0e7 100644 --- a/test/test_kvaser.py +++ b/test/test_kvaser.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -# coding: utf-8 """ """ From e6842ebded3f5f1302a7ea3322b6ea322f9e09ce Mon Sep 17 00:00:00 2001 From: Felix Date: Tue, 8 Jun 2021 14:54:30 +0000 Subject: [PATCH 3/3] Format code with black --- can/interfaces/nixnet.py | 1 - 1 file changed, 1 deletion(-) diff --git a/can/interfaces/nixnet.py b/can/interfaces/nixnet.py index 5ace32553..993c215dd 100644 --- a/can/interfaces/nixnet.py +++ b/can/interfaces/nixnet.py @@ -1,4 +1,3 @@ - """ NI-XNET interface module.