From e2ed569233727dbffd2d6b9c1dea3c0a0f084f83 Mon Sep 17 00:00:00 2001 From: Laurent Monin Date: Mon, 5 Feb 2018 14:43:55 +0100 Subject: [PATCH] Python3 doesn't need to import print_function This is now a standard feature and no longer needs to be imported from __future__. https://www.python.org/dev/peps/pep-3105/ --- picard/cluster.py | 1 - picard/config.py | 1 - picard/log.py | 1 - picard/tagger.py | 1 - setup.py | 1 - test/test_textencoding.py | 1 - 6 files changed, 6 deletions(-) mode change 100755 => 100644 setup.py diff --git a/picard/cluster.py b/picard/cluster.py index 94e86480d..c8a355b2e 100644 --- a/picard/cluster.py +++ b/picard/cluster.py @@ -18,7 +18,6 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -from __future__ import print_function import re import ntpath import sys diff --git a/picard/config.py b/picard/config.py index 439dae9a7..f4c04494a 100644 --- a/picard/config.py +++ b/picard/config.py @@ -17,7 +17,6 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -from __future__ import print_function from operator import itemgetter from PyQt5 import QtCore from picard import (PICARD_APP_NAME, PICARD_ORG_NAME, PICARD_VERSION, diff --git a/picard/log.py b/picard/log.py index f95baed0a..14000c0ac 100644 --- a/picard/log.py +++ b/picard/log.py @@ -17,7 +17,6 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -from __future__ import print_function import sys import os from collections import deque diff --git a/picard/tagger.py b/picard/tagger.py index 59ab453fe..e74c7c473 100644 --- a/picard/tagger.py +++ b/picard/tagger.py @@ -18,7 +18,6 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -from __future__ import print_function import sip sip.setapi("QString", 2) diff --git a/setup.py b/setup.py old mode 100755 new mode 100644 index 385330d7c..55ab9513b --- a/setup.py +++ b/setup.py @@ -1,7 +1,6 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- -from __future__ import print_function import datetime import glob import os diff --git a/test/test_textencoding.py b/test/test_textencoding.py index 4e0993755..ac755d4b8 100644 --- a/test/test_textencoding.py +++ b/test/test_textencoding.py @@ -1,6 +1,5 @@ # -*- coding: utf-8 -*- -from __future__ import print_function import unittest from picard import util #from picard.util import textencoding