Skip to content

Commit 1b09dc6

Browse files
authored
Remove __future__ for libraries builtin in python 3. (#874)
1 parent b14f325 commit 1b09dc6

File tree

22 files changed

+4
-43
lines changed

22 files changed

+4
-43
lines changed

examples/common/custom_datablock.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
This is an example of performing custom logic after a value has been
55
written to the datastore.
66
"""
7-
from __future__ import print_function
87
import logging
98

109
# --------------------------------------------------------------------------- #

examples/common/performance.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
# --------------------------------------------------------------------------- #
88
# import the necessary modules
99
# --------------------------------------------------------------------------- #
10-
from __future__ import print_function
1110
import logging
1211
import os
1312
from threading import Lock, Thread as tWorker

examples/contrib/message_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# -------------------------------------------------------------------------- #
1313
# import needed libraries
1414
# -------------------------------------------------------------------------- #
15-
from __future__ import print_function
15+
1616
import logging
1717
import collections
1818
import textwrap

ez_setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!python
2-
"""Ez_setup"""
3-
from __future__ import print_function
2+
"""Ez_setup."""
43
import os
54
import sys
65
"""Bootstrap setuptools installation
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
"""Factory class."""
2-
from __future__ import absolute_import, unicode_literals

pymodbus/client/asynchronous/factory/serial.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
"""Factory to create asynchronous serial clients based on twisted/tornado/asyncio."""
2-
from __future__ import unicode_literals
3-
from __future__ import absolute_import
42
import logging
53
import asyncio
64

pymodbus/client/asynchronous/factory/tcp.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
"""Factory to create asynchronous tcp clients based on twisted/tornado/asyncio."""
2-
from __future__ import unicode_literals
3-
from __future__ import absolute_import
42
import logging
53
import asyncio
64

pymodbus/client/asynchronous/factory/tls.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
"""Factory to create asynchronous tls clients based on asyncio."""
2-
from __future__ import unicode_literals
3-
from __future__ import absolute_import
42
import logging
53
import asyncio
64

pymodbus/client/asynchronous/factory/udp.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
"""UDP implementation."""
2-
from __future__ import unicode_literals
3-
from __future__ import absolute_import
42
import logging
53
import asyncio
64

pymodbus/client/asynchronous/schedulers/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
"""Backend schedulers to use with generic Async clients."""
2-
from __future__ import unicode_literals
32

43
REACTOR = "reactor"
54
IO_LOOP = "io_loop"

0 commit comments

Comments
 (0)