From 4c95668c720d2314d89f7a94e782611e1dfb768f Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Tue, 28 Nov 2017 06:03:46 -0800 Subject: [PATCH] Remove "from __future__ import with_statement" All versions of Python supported by psycopg2 have builtin support for the with statement. The import is unnecessary noise. --- tests/test_types_extras.py | 1 - tests/test_with.py | 3 --- 2 files changed, 4 deletions(-) diff --git a/tests/test_types_extras.py b/tests/test_types_extras.py index a5aa7d2b..6d842d80 100755 --- a/tests/test_types_extras.py +++ b/tests/test_types_extras.py @@ -13,7 +13,6 @@ # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or # FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public # License for more details. -from __future__ import with_statement import re import sys diff --git a/tests/test_with.py b/tests/test_with.py index e5c0bc23..53dfa464 100755 --- a/tests/test_with.py +++ b/tests/test_with.py @@ -22,9 +22,6 @@ # FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public # License for more details. - -from __future__ import with_statement - import psycopg2 import psycopg2.extensions as ext