From 7c187ddd66be38bb5800d00514c897eae1585f00 Mon Sep 17 00:00:00 2001 From: warren Date: Thu, 9 Nov 2023 10:05:38 -0500 Subject: [PATCH] MAINT: Remove Python 2 'from __future__' imports. --- numpngw.py | 3 --- pngscan.py | 2 -- tests/test_utilities.py | 1 - tests/test_write_png.py | 2 -- 4 files changed, 8 deletions(-) diff --git a/numpngw.py b/numpngw.py index c5090fa..cdaaabb 100644 --- a/numpngw.py +++ b/numpngw.py @@ -32,9 +32,6 @@ POSSIBILITY OF SUCH DAMAGE. """ -from __future__ import (division as _division, - print_function as _print_function) - import sys as _sys import contextlib as _contextlib from io import BytesIO as _BytesIO diff --git a/pngscan.py b/pngscan.py index fcb1925..ca0cf25 100644 --- a/pngscan.py +++ b/pngscan.py @@ -3,8 +3,6 @@ in the file to stdout. It is used for testing and debugging. """ -from __future__ import print_function, division - import struct import zlib diff --git a/tests/test_utilities.py b/tests/test_utilities.py index c157e00..7ffab52 100644 --- a/tests/test_utilities.py +++ b/tests/test_utilities.py @@ -1,4 +1,3 @@ -from __future__ import division, print_function import unittest import numpy as np diff --git a/tests/test_write_png.py b/tests/test_write_png.py index 940dc2f..6e0e588 100644 --- a/tests/test_write_png.py +++ b/tests/test_write_png.py @@ -1,5 +1,3 @@ -from __future__ import division, print_function - import unittest import io import struct