Skip to content

Commit

Permalink
Remove remaining relative imports
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfischer-ch committed Nov 14, 2018
1 parent 6db154c commit 4780cee
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pytoolbox/network/smpte2022/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def L(self):
**Example usage**
>>> from ..rtp import RtpPacket
>>> from pytoolbox.network.rtp import RtpPacket
>>> packets = [RtpPacket.create(10, 100, RtpPacket.MP2T_PT, bytearray(123)),
... RtpPacket.create(11, 200, RtpPacket.MP2T_PT, bytearray(1234))]
>>> fec = FecPacket.compute(6, FecPacket.XOR, FecPacket.ROW, 2, 1, packets)
Expand All @@ -230,7 +230,7 @@ def header_size(self):
**Example usage**
>>> from ..rtp import RtpPacket
>>> from pytoolbox.network.rtp import RtpPacket
>>> packets = [RtpPacket.create(10, 100, RtpPacket.MP2T_PT, bytearray(123)),
... RtpPacket.create(11, 200, RtpPacket.MP2T_PT, bytearray(1234))]
>>> fec = FecPacket.compute(1985, FecPacket.XOR, FecPacket.ROW, 2, 1, packets)
Expand All @@ -246,7 +246,7 @@ def payload_size(self):
**Example usage**
>>> from ..rtp import RtpPacket
>>> from pytoolbox.network.rtp import RtpPacket
>>> packets = [RtpPacket.create(10, 100, RtpPacket.MP2T_PT, bytearray(123)),
... RtpPacket.create(11, 200, RtpPacket.MP2T_PT, bytearray(1234))]
>>> fec = FecPacket.compute(27, FecPacket.XOR, FecPacket.ROW, 2, 1, packets)
Expand All @@ -262,7 +262,7 @@ def header_bytes(self):
**Example usage**
>>> from ..rtp import RtpPacket
>>> from pytoolbox.network.rtp import RtpPacket
>>> packets = [RtpPacket.create(10, 100, RtpPacket.MP2T_PT, bytearray(123)),
... RtpPacket.create(11, 200, RtpPacket.MP2T_PT, bytearray(1234))]
>>> fec = FecPacket.compute(26, FecPacket.XOR, FecPacket.ROW, 2, 1, packets)
Expand Down Expand Up @@ -396,7 +396,7 @@ def compute(sequence, algorithm, direction, L, D, packets):
Testing invalid input collection of packets:
>>> from ..rtp import RtpPacket
>>> from pytoolbox.network.rtp import RtpPacket
>>> packets = [RtpPacket.create(10, 10, RtpPacket.MP2T_PT, 'a'),
... RtpPacket.create(22, 22, RtpPacket.MP2T_PT, 'b')]
>>> fec = FecPacket.compute(1, FecPacket.XOR, FecPacket.COL, 2, 2, packets)
Expand Down Expand Up @@ -432,7 +432,7 @@ def compute(sequence, algorithm, direction, L, D, packets):
>>> from os import urandom
>>> from random import randint
>>> from ..rtp import RtpPacket
>>> from pytoolbox.network.rtp import RtpPacket
>>> L = 4
>>> D = 5
>>> OFF = 2
Expand Down

0 comments on commit 4780cee

Please sign in to comment.