Commit 498fa8cd authored by Dylan Baker's avatar Dylan Baker

generators: use __future__ absolute_import

Again, this doesn't change the output of any of the generators, but it
helps to eliminate surprising behavior when switching from python2 to
python3

v2: - add this patch
Signed-off-by: default avatarDylan Baker <dylanx.c.baker@intel.com>
parent 27cea0df
......@@ -48,7 +48,7 @@
# swizzling, the function call operator, assignment, and the sequence
# operator.
from __future__ import print_function, division
from __future__ import print_function, division, absolute_import
import collections
import itertools
import functools
......
......@@ -48,7 +48,7 @@
# swizzling, the function call operator, assignment, and the sequence
# operator.
from __future__ import print_function, division
from __future__ import print_function, division, absolute_import
import collections
import itertools
import functools
......
......@@ -32,7 +32,7 @@ denormalized) floating point numbers.
"""
from __future__ import print_function, division
from __future__ import print_function, division, absolute_import
import math
import optparse
import os
......
......@@ -44,7 +44,7 @@
# With the optional argument --names-only, it only outputs the names
# of the files; it doesn't generate them.
from __future__ import print_function, division
from __future__ import print_function, division, absolute_import
from builtin_function import *
import abc
import numpy
......
......@@ -44,7 +44,7 @@
# With the optional argument --names-only, it only outputs the names
# of the files; it doesn't generate them.
from __future__ import print_function, division
from __future__ import print_function, division, absolute_import
from builtin_function_fp64 import *
import abc
import numpy
......
from __future__ import print_function, division
from __future__ import print_function, division, absolute_import
import os
from genclbuiltins import gen, DATA_SIZES, MAX_VALUES, MAX, MIN, BMIN, BMAX, \
SMIN, SMAX, UMIN, UMAX, TYPE, SIZE, T, U, B
......
......@@ -23,7 +23,7 @@
# Aaron Watry <awatry@gmail.com>
#
from __future__ import print_function, division
from __future__ import print_function, division, absolute_import
import os
from genclbuiltins import gen, NEGNAN
......
......@@ -23,7 +23,7 @@
# Aaron Watry <awatry@gmail.com>
#
from __future__ import print_function, division
from __future__ import print_function, division, absolute_import
import os
from genclbuiltins import gen, TRUE, NEGNAN
......
......@@ -23,7 +23,7 @@
#
#
from __future__ import print_function, division
from __future__ import print_function, division, absolute_import
import os
import textwrap
......
......@@ -20,7 +20,7 @@
""" Generate tests for builtin const equality tests """
from __future__ import print_function, division
from __future__ import print_function, division, absolute_import
import re
import os
......
......@@ -34,7 +34,7 @@
# With the optional argument --names-only, it only outputs the names
# of the files; it doesn't generate them.
from __future__ import print_function, division
from __future__ import print_function, division, absolute_import
from builtin_function import *
import abc
import optparse
......
......@@ -34,7 +34,7 @@
# With the optional argument --names-only, it only outputs the names
# of the files; it doesn't generate them.
from __future__ import print_function, division
from __future__ import print_function, division, absolute_import
from builtin_function_fp64 import *
import abc
import optparse
......
......@@ -67,7 +67,7 @@ This program outputs, to stdout, the name of each file it generates.
"""
from __future__ import print_function, division
from __future__ import print_function, division, absolute_import
import os
from six.moves import range
......
......@@ -21,7 +21,7 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
from __future__ import print_function, division
from __future__ import print_function, division, absolute_import
import os
import itertools
......
......@@ -18,7 +18,7 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
from __future__ import print_function, division
from __future__ import print_function, division, absolute_import
import os
from templates import template_file
......
......@@ -20,7 +20,7 @@
""" Generate glsl 1.20 outerproduct tests """
from __future__ import print_function, division
from __future__ import print_function, division, absolute_import
import os
import itertools
import collections
......
......@@ -21,7 +21,7 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
from __future__ import print_function, division
from __future__ import print_function, division, absolute_import
import struct
import os
from operator import neg
......
......@@ -21,7 +21,7 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
from __future__ import print_function, division
from __future__ import print_function, division, absolute_import
import os.path
from mako.template import Template
from textwrap import dedent
......
......@@ -46,7 +46,7 @@
This program outputs, to stdout, the name of each file it generates.
"""
from __future__ import print_function, division
from __future__ import print_function, division, absolute_import
from builtin_function import *
import os
......
......@@ -20,7 +20,7 @@
""" Generate spec/ARB_shader_texture_lod tests """
from __future__ import print_function, division
from __future__ import print_function, division, absolute_import
import os
import collections
......
......@@ -21,7 +21,7 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
from __future__ import print_function, division
from __future__ import print_function, division, absolute_import
import os
import os.path
......
......@@ -21,7 +21,7 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
from __future__ import print_function, division
from __future__ import print_function, division, absolute_import
import os
from six.moves import range
......
from __future__ import print_function, division
from __future__ import print_function, division, absolute_import
import os
import six
......
......@@ -23,7 +23,7 @@
"""Generate interpolation-qualifier tests."""
from __future__ import print_function, division
from __future__ import print_function, division, absolute_import
import os
import itertools
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment