8000 Remove __div__ and __rdiv__ methods · python-control/python-control@0efae63 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 0efae63

Browse files
committed
Remove __div__ and __rdiv__ methods
These aren't used in Python 3.
1 parent f81b6d2 commit 0efae63

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

control/frdata.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -408,10 +408,6 @@ def __truediv__(self, other):
408408
smooth=(self.ifunc is not None) and
409409
(other.ifunc is not None))
410410

411-
# TODO: Remove when transition to python3 complete
412-
def __div__(self, other):
413-
return self.__truediv__(other)
414-
415411
# TODO: Division of MIMO transfer function objects is not written yet.
416412
def __rtruediv__(self, other):
417413
"""Right divide two LTI objects."""
@@ -429,10 +425,6 @@ def __rtruediv__(self, other):
429425

430426
return other / self
431427

432-
# TODO: Remove when transition to python3 complete
433-
def __rdiv__(self, other):
434-
return self.__rtruediv__(other)
435-
436428
def __pow__(self, other):
437429
if not type(other) == int:
438430
raise ValueError("Exponent must be an integer")

control/xferfcn.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -702,10 +702,6 @@ def __truediv__(self, other):
702702

703703
return TransferFunction(num, den, dt)
704704

705-
# TODO: Remove when transition to python3 complete
706-
def __div__(self, other):
707-
return TransferFunction.__truediv__(self, other)
708-
709705
# TODO: Division of MIMO transfer function objects is not written yet.
710706
def __rtruediv__(self, other):
711707
"""Right divide two LTI objects."""
@@ -724,10 +720,6 @@ def __rtruediv__(self, other):
724720

725721
return other / self
726722

727-
# TODO: Remove when transition to python3 complete
728-
def __rdiv__(self, other):
729-
return TransferFunction.__rtruediv__(self, other)
730-
731723
def __pow__(self, other):
732724
if not type(other) == int:
733725
raise ValueError("Exponent must be an integer")

0 commit comments

Comments
 (0)
0