aboutsummaryrefslogtreecommitdiffstats
path: root/lang/python/tests/t-idiomatic.py
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2016-09-14 09:39:00 +0000
committerJustus Winter <[email protected]>2016-09-14 10:15:57 +0000
commitdc23fdf55561659f9e9cff51668ac9c6c027c885 (patch)
tree61aeb795d2b6fa92eadde043581340c7172f0ea8 /lang/python/tests/t-idiomatic.py
parentpython: Use more generic shebang. (diff)
downloadgpgme-dc23fdf55561659f9e9cff51668ac9c6c027c885.tar.gz
gpgme-dc23fdf55561659f9e9cff51668ac9c6c027c885.zip
python: Import from __future__ to align behavior of Python 2.7.
-- Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'lang/python/tests/t-idiomatic.py')
-rwxr-xr-xlang/python/tests/t-idiomatic.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lang/python/tests/t-idiomatic.py b/lang/python/tests/t-idiomatic.py
index 6dbe6209..f0632064 100755
--- a/lang/python/tests/t-idiomatic.py
+++ b/lang/python/tests/t-idiomatic.py
@@ -17,6 +17,9 @@
# You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, see <http://www.gnu.org/licenses/>.
+from __future__ import absolute_import, print_function, unicode_literals
+del absolute_import, print_function, unicode_literals
+
import sys
import io
import os