Skip to content

Commit df87090

Browse files
authored
Solve flake8 E251. (#890)
1 parent 6356dd0 commit df87090

12 files changed

+19
-20
lines changed

doc/api/pydoc/build.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -309,10 +309,10 @@ class PackageDocumentationGenerator:
309309
"""
310310

311311
def __init__(
312-
self, baseModules, destinationDirectory = ".",
313-
recursion = 1, exclusions = (),
314-
recursionStops = (),
315-
formatter = None
312+
self, baseModules, destinationDirectory=".",
313+
recursion=1, exclusions=(),
314+
recursionStops=(),
315+
formatter=None
316316
):
317317
"""Initialize."""
318318
self.destinationDirectory = os.path.abspath(destinationDirectory)
@@ -411,7 +411,7 @@ def process(self):
411411
self.formatter.docmodule(
412412
object,
413413
object.__name__,
414-
packageContext = self,
414+
packageContext=self,
415415
)
416416
)
417417
file = open(
@@ -466,10 +466,10 @@ def recurseScan(self, objectList):
466466

467467
print("Building Pydoc API Documentation")
468468
PackageDocumentationGenerator(
469-
baseModules = ['pymodbus', '__builtin__'],
470-
destinationDirectory = "./html/",
471-
exclusions = ['math', 'string', 'twisted'],
472-
recursionStops = [],
469+
baseModules=['pymodbus', '__builtin__'],
470+
destinationDirectory="./html/",
471+
exclusions=['math', 'string', 'twisted'],
472+
recursionStops=[],
473473
).process()
474474

475475
if os.path.exists('../../../build'):

examples/common/asynchronous_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def run_async_server():
105105
# ----------------------------------------------------------------------- #
106106
# If you don't set this or any fields, they are defaulted to empty strings.
107107
# ----------------------------------------------------------------------- #
108-
identity = ModbusDeviceIdentification(info_name= {
108+
identity = ModbusDeviceIdentification(info_name={
109109
'VendorName': 'Pymodbus',
110110
'ModelName': 'Pymodbus Server',
111111
'MajorMinorRevision': version.short(),

examples/common/asyncio_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ async def run_server():
101101
# ----------------------------------------------------------------------- #
102102
# If you don't set this or any fields, they are defaulted to empty strings.
103103
# ----------------------------------------------------------------------- #
104-
identity = ModbusDeviceIdentification(info_name= {
104+
identity = ModbusDeviceIdentification(info_name={
105105
'VendorName': 'Pymodbus',
106106
'ProductCode': 'PM',
107107
'VendorUrl': 'http://github.com/riptideio/pymodbus/', # NOSONAR

examples/common/callback_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def run_callback_server():
120120
# ----------------------------------------------------------------------- #
121121
# initialize the server information
122122
# ----------------------------------------------------------------------- #
123-
identity = ModbusDeviceIdentification(info_name= {
123+
identity = ModbusDeviceIdentification(info_name={
124124
'VendorName': 'pymodbus',
125125
'ProductCode': 'PM',
126126
'VendorUrl': 'http://github.com/riptideio/pymodbus/', # NOSONAR

examples/common/custom_datablock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def run_custom_db_server():
6161
# initialize the server information
6262
# ----------------------------------------------------------------------- #
6363

64-
identity = ModbusDeviceIdentification(info_name= {
64+
identity = ModbusDeviceIdentification(info_name={
6565
'VendorName': 'pymodbus',
6666
'ProductCode': 'PM',
6767
'VendorUrl': 'http://github.com/riptideio/pymodbus/', # NOSONAR

examples/common/custom_synchronous_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def run_server():
9999
# ----------------------------------------------------------------------- #
100100
# If you don't set this or any fields, they are defaulted to empty strings.
101101
# ----------------------------------------------------------------------- #
102-
identity = ModbusDeviceIdentification(info_name= {
102+
identity = ModbusDeviceIdentification(info_name={
103103
'VendorName': 'Pymodbus',
104104
'ProductCode': 'PM',
105105
'VendorUrl': 'http://github.com/riptideio/pymodbus/', # NOSONAR

examples/common/dbstore_update_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def run_dbstore_update_server():
8484
# ----------------------------------------------------------------------- #
8585
# initialize the server information
8686
# ----------------------------------------------------------------------- #
87-
identity = ModbusDeviceIdentification(info_name= {
87+
identity = ModbusDeviceIdentification(info_name={
8888
'VendorName': 'pymodbus',
8989
'ProductCode': 'PM',
9090
'VendorUrl': 'http://github.com/riptideio/pymodbus/', # NOSONAR

examples/common/modbus_payload_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def run_payload_server():
6868
# ----------------------------------------------------------------------- #
6969
# If you don't set this or any fields, they are defaulted to empty strings.
7070
# ----------------------------------------------------------------------- #
71-
identity = ModbusDeviceIdentification(info_name= {
71+
identity = ModbusDeviceIdentification(info_name={
7272
'VendorName': 'Pymodbus',
7373
'ProductCode': 'PM',
7474
'VendorUrl': 'http://github.com/riptideio/pymodbus/', # NOSONAR

examples/common/synchronous_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def run_server():
100100
# ----------------------------------------------------------------------- #
101101
# If you don't set this or any fields, they are defaulted to empty strings.
102102
# ----------------------------------------------------------------------- #
103-
ModbusDeviceIdentification(info_name= {
103+
ModbusDeviceIdentification(info_name={
104104
'VendorName': 'Pymodbus',
105105
'ProductCode': 'PM',
106106
'VendorUrl': 'http://github.com/riptideio/pymodbus/', # NOSONAR

examples/common/updating_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def run_updating_server():
7373
# ----------------------------------------------------------------------- #
7474
# initialize the server information
7575
# ----------------------------------------------------------------------- #
76-
identity = ModbusDeviceIdentification(info_name= {
76+
identity = ModbusDeviceIdentification(info_name={
7777
'VendorName': 'pymodbus',
7878
'ProductCode': 'PM',
7979
'VendorUrl': 'http://github.com/riptideio/pymodbus/', # NOSONAR

0 commit comments

Comments
 (0)