Skip to content

Commit 7d97ef9

Browse files
committed
remove python2 future imports
1 parent 2123d52 commit 7d97ef9

15 files changed

Lines changed: 14 additions & 51 deletions

control/delay.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
#
4343
# $Id$
4444

45-
from __future__ import division
4645

4746
__all__ = ['pade']
4847

control/frdata.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
# Author: M.M. (Rene) van Paassen (using xferfcn.py as basis)
3636
# Date: 02 Oct 12
3737

38-
from __future__ import division
3938

4039
"""
4140
Frequency response data representation and functions.

control/margins.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
margins.margin
1010
"""
1111

12-
# Python 3 compatibility (needs to go here)
13-
from __future__ import print_function
14-
1512
"""Copyright (c) 2011 by California Institute of Technology
1613
All rights reserved.
1714

control/modelsimp.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@
4040
#
4141
# $Id$
4242

43-
# Python 3 compatibility
44-
from __future__ import print_function
45-
4643
# External packages and modules
4744
import numpy as np
4845
import warnings

control/phaseplot.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@
3434
# IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
3535
# POSSIBILITY OF SUCH DAMAGE.
3636

37-
# Python 3 compatibility
38-
from __future__ import print_function
39-
4037
import numpy as np
4138
import matplotlib.pyplot as mpl
4239

control/statesp.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@
88
99
"""
1010

11-
# Python 3 compatibility (needs to go here)
12-
from __future__ import print_function
13-
from __future__ import division # for _convert_to_statespace
14-
1511
"""Copyright (c) 2010 by California Institute of Technology
1612
All rights reserved.
1713

control/tests/convert_test.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
1515
"""
1616

17-
from __future__ import print_function
18-
from warnings import warn
1917

2018
import numpy as np
2119
import pytest

control/tests/delay_test.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
Primitive; ideally test to numerical limits
55
"""
66

7-
from __future__ import division
8-
97
import numpy as np
108
import pytest
119

@@ -94,4 +92,3 @@ def testT0(self):
9492
np.array(refnum), np.array(num))
9593
np.testing.assert_array_almost_equal_nulp(
9694
np.array(refden), np.array(den))
97-

control/tests/iosys_test.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,10 @@
88
created for that purpose.
99
"""
1010

11-
from __future__ import print_function
1211
import re
1312

1413
import numpy as np
1514
import pytest
16-
import scipy as sp
1715

1816
import control as ct
1917
from control import iosys as ios
@@ -1270,7 +1268,7 @@ def test_lineariosys_statespace(self, tsys):
12701268
(2, 2, 'rss', ct.LinearIOSystem.__rsub__, 2, 2),
12711269
(2, 2, 2, ct.LinearIOSystem.__rsub__, 2, 2),
12721270
(2, 2, np.random.rand(2, 2), ct.LinearIOSystem.__rsub__, 2, 2),
1273-
1271+
12741272
])
12751273
def test_operand_conversion(self, Pout, Pin, C, op, PCout, PCin):
12761274
P = ct.LinearIOSystem(

control/tests/margin_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
BG, 30 Jun 2020 -- convert to pytest, gh-425
77
BG, 16 Nov 2020 -- pick from gh-438 and add discrete test
88
"""
9-
from __future__ import print_function
109

1110
import numpy as np
1211
import pytest

0 commit comments

Comments
 (0)