Skip to content
This repository was archived by the owner on Apr 22, 2024. It is now read-only.

Commit 8402e3d

Browse files
committed
Fix pylama warning.
Fix warning: D301 - Use r""" if any backslashes in a docstring
1 parent e62a269 commit 8402e3d

4 files changed

Lines changed: 20 additions & 21 deletions

File tree

pyof/v0x01/controller2switch/packet_out.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ def __init__(self, xid=None, buffer_id=NO_BUFFER, in_port=Port.OFPP_NONE,
3535
Args:
3636
xid (int): xid of the message header.
3737
buffer_id (int): ID assigned by datapath (-1 if none).
38-
in_port \
39-
(:class:`int` or :class:`~pyof.v0x01.common.phy_port.Port`):
38+
in_port (:class:`int` / :class:`~pyof.v0x01.common.phy_port.Port`):
4039
Packet's input port (:attr:`.Port.OFPP_NONE` if none). Virtual
4140
ports :attr:`Port.OFPP_IN_PORT`, :attr:`Port.OFPP_TABLE`,
4241
:attr:`Port.OFPP_NORMAL`, :attr:`Port.OFPP_FLOOD`, and

pyof/v0x04/controller2switch/common.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -280,22 +280,22 @@ def __init__(self, xid=None, packet_in_mask1=None, packet_in_mask2=None,
280280
281281
Args:
282282
xid (int): xid to be used on the message header.
283-
packet_in_mask1 \
283+
packet_in_mask1
284284
(~pyof.v0x04.asynchronous.packet_in.PacketInReason):
285285
A instance of PacketInReason
286-
packet_in_mask2 \
286+
packet_in_mask2
287287
(~pyof.v0x04.asynchronous.packet_in.PacketInReason):
288288
A instance of PacketInReason
289-
port_status_mask1 \
289+
port_status_mask1
290290
(~pyof.v0x04.asynchronous.port_status.PortReason):
291291
A instance of PortReason
292-
port_status_mask2 \
292+
port_status_mask2
293293
(~pyof.v0x04.asynchronous.port_status.PortReason):
294294
A instance of PortReason
295-
flow_removed_mask1 \
295+
flow_removed_mask1
296296
(~pyof.v0x04.asynchronous.flow_removed.FlowRemoved):
297297
A instance of FlowRemoved.
298-
flow_removed_mask2 \
298+
flow_removed_mask2
299299
(~pyof.v0x04.asynchronous.flow_removed.FlowRemoved):
300300
A instance of FlowRemoved.
301301
"""
@@ -450,7 +450,7 @@ def __init__(self, property_type=TableFeaturePropType.OFPTFPT_INSTRUCTIONS,
450450
Args:
451451
type(~pyof.v0x04.controller2switch.common.TableFeaturePropType):
452452
Property Type value of this instance.
453-
instruction_ids \
453+
instruction_ids
454454
(~pyof.v0x04.common.flow_instructions.ListOfInstruction):
455455
List of Instruction instances.
456456
"""

pyof/v0x04/controller2switch/get_async_reply.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,22 +27,22 @@ def __init__(self, xid=None, packet_in_mask1=None, packet_in_mask2=None,
2727
2828
Args:
2929
xid (int): xid to be used on the message header.
30-
packet_in_mask1 \
30+
packet_in_mask1
3131
(~pyof.v0x04.asynchronous.packet_in.PacketInReason):
3232
A instance of PacketInReason
33-
packet_in_mask2 \
33+
packet_in_mask2
3434
(~pyof.v0x04.asynchronous.packet_in.PacketInReason):
3535
A instance of PacketInReason
36-
port_status_mask1 \
36+
port_status_mask1
3737
(~pyof.v0x04.asynchronous.port_status.PortReason):
3838
A instance of PortReason
39-
port_status_mask2 \
39+
port_status_mask2
4040
(~pyof.v0x04.asynchronous.port_status.PortReason):
4141
A instance of PortReason
42-
flow_removed_mask1 \
42+
flow_removed_mask1
4343
(~pyof.v0x04.asynchronous.flow_removed.FlowRemoved):
4444
A instance of FlowRemoved.
45-
flow_removed_mask2 \
45+
flow_removed_mask2
4646
(~pyof.v0x04.asynchronous.flow_removed.FlowRemoved):
4747
A instance of FlowRemoved.
4848
"""

pyof/v0x04/controller2switch/set_async.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,22 @@ def __init__(self, xid=None, packet_in_mask1=None, packet_in_mask2=None,
2929
3030
Args:
3131
xid (int): xid to be used on the message header.
32-
packet_in_mask1 \
32+
packet_in_mask1
3333
(~pyof.v0x04.asynchronous.packet_in.PacketInReason):
3434
A instance of PacketInReason
35-
packet_in_mask2 \
35+
packet_in_mask2
3636
(~pyof.v0x04.asynchronous.packet_in.PacketInReason):
3737
A instance of PacketInReason
38-
port_status_mask1 \
38+
port_status_mask1
3939
(~pyof.v0x04.asynchronous.port_status.PortReason):
4040
A instance of PortReason
41-
port_status_mask2 \
41+
port_status_mask2
4242
(~pyof.v0x04.asynchronous.port_status.PortReason):
4343
A instance of PortReason
44-
flow_removed_mask1 \
44+
flow_removed_mask1
4545
(~pyof.v0x04.asynchronous.flow_removed.FlowRemoved):
4646
A instance of FlowRemoved.
47-
flow_removed_mask2 \
47+
flow_removed_mask2
4848
(~pyof.v0x04.asynchronous.flow_removed.FlowRemoved):
4949
A instance of FlowRemoved.
5050
"""

0 commit comments

Comments
 (0)