Skip to content

Commit 6156523

Browse files
authored
Merge pull request #1044 from enthought/remove-__future__-imports
Remove all __future__ imports
2 parents 0ed663f + b0397c9 commit 6156523

22 files changed

Lines changed: 0 additions & 43 deletions

File tree

docs/source/mayavi/auto/compute_in_thread.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
# Copyright (c) 2007-2020, Enthought, Inc.
99
# License: BSD Style.
1010

11-
from __future__ import print_function
12-
1311
# Standard library imports
1412
import numpy
1513
from threading import Thread

docs/source/mayavi/auto/mlab_3D_to_2D.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,6 @@
111111
# Copyright (c) 2009, S. Chris Colbert
112112
# License: BSD Style
113113

114-
from __future__ import print_function
115-
116114
# this import is here because we need to ensure that matplotlib uses the
117115
# wx backend and having regular code outside the main block is PyTaboo.
118116
# It needs to be imported first, so that matplotlib can impose the

examples/mayavi/advanced_visualization/mlab_3D_to_2D.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,6 @@
111111
# Copyright (c) 2009, S. Chris Colbert
112112
# License: BSD Style
113113

114-
from __future__ import print_function
115-
116114
# this import is here because we need to ensure that matplotlib uses the
117115
# wx backend and having regular code outside the main block is PyTaboo.
118116
# It needs to be imported first, so that matplotlib can impose the

examples/mayavi/interactive/compute_in_thread.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
# Copyright (c) 2007-2020, Enthought, Inc.
99
# License: BSD Style.
1010

11-
from __future__ import print_function
12-
1311
# Standard library imports
1412
import numpy as np
1513
from threading import Thread

examples/tvtk/animated_texture.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
# Copyright (c) 2006-2020, Enthought, Inc.
1111
# License: BSD Style.
1212

13-
from __future__ import print_function
14-
1513
from numpy import arange, zeros, uint8, exp, sqrt, pi
1614

1715
from tvtk.api import tvtk

integrationtests/mayavi/common.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
# Copyright (c) 2005-2020, Enthought, Inc.
55
# License: BSD Style.
66

7-
from __future__ import print_function
8-
97
# Standard library imports
108
import gc
119
import os

mayavi/core/customize.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
# Copyright (c) 2008-2020, Prabhu Ramachandran, Enthought, Inc.
2222
# License: BSD Style.
2323

24-
from __future__ import print_function
25-
2624
# Standard library imports.
2725
import sys
2826
import traceback

mayavi/core/traits_menu.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
# Copyright (c) 2008-2020, Prabhu Ramachandran Enthought, Inc.
66
# License: BSD Style.
77

8-
from __future__ import print_function
9-
108
# Standard library imports.
119
from os.path import splitext, isfile
1210

mayavi/scripts/mayavi2.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
# Copyright (c) 2005-2020, Enthought, Inc.
1313
# License: BSD Style.
1414

15-
from __future__ import print_function
16-
1715
# Standard library imports.
1816
import sys
1917
import getopt

mayavi/tests/runtests.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
# Copyright (c) 2009-2020, Enthought Inc.
1111
# License: BSD Style.
1212

13-
from __future__ import print_function
14-
1513
import sys
1614
from os.path import dirname, join, isfile, isdir
1715
from glob import glob

0 commit comments

Comments
 (0)