[Pkg-gnupg-commit] [gpgme] 352/412: python: Import from __future__ to align behavior of Python 2.7.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Thu Sep 22 21:27:18 UTC 2016


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch master
in repository gpgme.

commit dc23fdf55561659f9e9cff51668ac9c6c027c885
Author: Justus Winter <justus at g10code.com>
Date:   Wed Sep 14 11:39:00 2016 +0200

    python: Import from __future__ to align behavior of Python 2.7.
    
    --
    Signed-off-by: Justus Winter <justus at g10code.com>
---
 lang/python/examples/assuan.py                 | 3 +++
 lang/python/examples/decryption-filter.py      | 3 +++
 lang/python/examples/delkey.py                 | 3 +++
 lang/python/examples/encrypt-to-all.py         | 3 +++
 lang/python/examples/exportimport.py           | 3 +++
 lang/python/examples/genkey.py                 | 3 +++
 lang/python/examples/inter-edit.py             | 3 +++
 lang/python/examples/sign.py                   | 3 +++
 lang/python/examples/signverify.py             | 3 +++
 lang/python/examples/simple.py                 | 3 +++
 lang/python/examples/testCMSgetkey.py          | 3 +++
 lang/python/examples/verifydetails.py          | 3 +++
 lang/python/gpgme-h-clean.py                   | 3 +++
 lang/python/pyme/__init__.py                   | 3 +++
 lang/python/pyme/callbacks.py                  | 3 +++
 lang/python/pyme/constants/__init__.py         | 3 +++
 lang/python/pyme/constants/data/__init__.py    | 3 +++
 lang/python/pyme/constants/data/encoding.py    | 3 +++
 lang/python/pyme/constants/event.py            | 3 +++
 lang/python/pyme/constants/import.py           | 3 +++
 lang/python/pyme/constants/keylist/__init__.py | 3 +++
 lang/python/pyme/constants/keylist/mode.py     | 3 +++
 lang/python/pyme/constants/md.py               | 3 +++
 lang/python/pyme/constants/pk.py               | 3 +++
 lang/python/pyme/constants/protocol.py         | 3 +++
 lang/python/pyme/constants/sig/__init__.py     | 3 +++
 lang/python/pyme/constants/sig/mode.py         | 3 +++
 lang/python/pyme/constants/sigsum.py           | 3 +++
 lang/python/pyme/constants/status.py           | 3 +++
 lang/python/pyme/constants/validity.py         | 3 +++
 lang/python/pyme/core.py                       | 3 +++
 lang/python/pyme/errors.py                     | 3 +++
 lang/python/pyme/results.py                    | 3 +++
 lang/python/pyme/util.py                       | 3 +++
 lang/python/pyme/version.py.in                 | 3 +++
 lang/python/tests/final.py                     | 3 +++
 lang/python/tests/initial.py                   | 3 +++
 lang/python/tests/support.py                   | 3 +++
 lang/python/tests/t-callbacks.py               | 3 +++
 lang/python/tests/t-data.py                    | 3 +++
 lang/python/tests/t-decrypt-verify.py          | 3 +++
 lang/python/tests/t-decrypt.py                 | 3 +++
 lang/python/tests/t-edit.py                    | 3 +++
 lang/python/tests/t-encrypt-large.py           | 3 +++
 lang/python/tests/t-encrypt-sign.py            | 3 +++
 lang/python/tests/t-encrypt-sym.py             | 3 +++
 lang/python/tests/t-encrypt.py                 | 3 +++
 lang/python/tests/t-export.py                  | 3 +++
 lang/python/tests/t-file-name.py               | 3 +++
 lang/python/tests/t-idiomatic.py               | 3 +++
 lang/python/tests/t-import.py                  | 3 +++
 lang/python/tests/t-keylist.py                 | 3 +++
 lang/python/tests/t-protocol-assuan.py         | 3 +++
 lang/python/tests/t-sig-notation.py            | 3 +++
 lang/python/tests/t-sign.py                    | 3 +++
 lang/python/tests/t-signers.py                 | 3 +++
 lang/python/tests/t-trustlist.py               | 3 +++
 lang/python/tests/t-verify.py                  | 3 +++
 lang/python/tests/t-wait.py                    | 3 +++
 59 files changed, 177 insertions(+)

diff --git a/lang/python/examples/assuan.py b/lang/python/examples/assuan.py
index e4822b7..22960d3 100644
--- a/lang/python/examples/assuan.py
+++ b/lang/python/examples/assuan.py
@@ -17,6 +17,9 @@
 
 """Demonstrate the use of the Assuan protocol engine"""
 
+from __future__ import absolute_import, print_function, unicode_literals
+del absolute_import, print_function, unicode_literals
+
 import pyme
 
 with pyme.Context(protocol=pyme.constants.PROTOCOL_ASSUAN) as c:
diff --git a/lang/python/examples/decryption-filter.py b/lang/python/examples/decryption-filter.py
index dbd66fc..3007c2b 100644
--- a/lang/python/examples/decryption-filter.py
+++ b/lang/python/examples/decryption-filter.py
@@ -24,6 +24,9 @@ be used like this:
 
 """
 
+from __future__ import absolute_import, print_function, unicode_literals
+del absolute_import, print_function, unicode_literals
+
 import sys
 import pyme
 pyme.Context().decrypt(sys.stdin, sink=sys.stdout)
diff --git a/lang/python/examples/delkey.py b/lang/python/examples/delkey.py
index 491f38a..a02f412 100755
--- a/lang/python/examples/delkey.py
+++ b/lang/python/examples/delkey.py
@@ -19,6 +19,9 @@
 # Sample of key deletion
 # It deletes keys for joe at example.org generated by genkey.py script
 
+from __future__ import absolute_import, print_function, unicode_literals
+del absolute_import, print_function, unicode_literals
+
 import pyme
 
 with pyme.Context() as c:
diff --git a/lang/python/examples/encrypt-to-all.py b/lang/python/examples/encrypt-to-all.py
index 304b474..bb8225b 100755
--- a/lang/python/examples/encrypt-to-all.py
+++ b/lang/python/examples/encrypt-to-all.py
@@ -22,6 +22,9 @@ This program will try to encrypt a simple message to each key on your
 keyring.  If your keyring has any invalid keys on it, those keys will
 be skipped and it will re-try the encryption."""
 
+from __future__ import absolute_import, print_function, unicode_literals
+del absolute_import, print_function, unicode_literals
+
 import sys
 import os
 import pyme
diff --git a/lang/python/examples/exportimport.py b/lang/python/examples/exportimport.py
index 8d76fa1..bc946bc 100755
--- a/lang/python/examples/exportimport.py
+++ b/lang/python/examples/exportimport.py
@@ -19,6 +19,9 @@
 # Sample of export and import of keys
 # It uses keys for joe+pyme at example.org generated by genkey.py script
 
+from __future__ import absolute_import, print_function, unicode_literals
+del absolute_import, print_function, unicode_literals
+
 import sys
 import os
 import pyme
diff --git a/lang/python/examples/genkey.py b/lang/python/examples/genkey.py
index 972fed7..ee70303 100755
--- a/lang/python/examples/genkey.py
+++ b/lang/python/examples/genkey.py
@@ -17,6 +17,9 @@
 # You should have received a copy of the GNU 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 pyme
 
 # This is the example from the GPGME manual.
diff --git a/lang/python/examples/inter-edit.py b/lang/python/examples/inter-edit.py
index 2f8e4ef..459df11 100644
--- a/lang/python/examples/inter-edit.py
+++ b/lang/python/examples/inter-edit.py
@@ -18,6 +18,9 @@
 
 """Simple interactive editor to test editor scripts"""
 
+from __future__ import absolute_import, print_function, unicode_literals
+del absolute_import, print_function, unicode_literals
+
 import sys
 import pyme
 import pyme.constants.status
diff --git a/lang/python/examples/sign.py b/lang/python/examples/sign.py
index d376683..2f235ba 100755
--- a/lang/python/examples/sign.py
+++ b/lang/python/examples/sign.py
@@ -16,6 +16,9 @@
 # You should have received a copy of the GNU 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 pyme
 from pyme.constants.sig import mode
diff --git a/lang/python/examples/signverify.py b/lang/python/examples/signverify.py
index e7bf0c9..f12e065 100755
--- a/lang/python/examples/signverify.py
+++ b/lang/python/examples/signverify.py
@@ -19,6 +19,9 @@
 # Sample of unattended signing/verifying of a message.
 # It uses keys for joe+pyme at example.org generated by genkey.py script
 
+from __future__ import absolute_import, print_function, unicode_literals
+del absolute_import, print_function, unicode_literals
+
 import sys
 import os
 import pyme
diff --git a/lang/python/examples/simple.py b/lang/python/examples/simple.py
index ca72cf1..ccd7cb4 100755
--- a/lang/python/examples/simple.py
+++ b/lang/python/examples/simple.py
@@ -17,6 +17,9 @@
 # You should have received a copy of the GNU 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 os
 import pyme
diff --git a/lang/python/examples/testCMSgetkey.py b/lang/python/examples/testCMSgetkey.py
index fbaa042..4467b6c 100644
--- a/lang/python/examples/testCMSgetkey.py
+++ b/lang/python/examples/testCMSgetkey.py
@@ -18,6 +18,9 @@
 
 """A test applicaton for the CMS protocol."""
 
+from __future__ import absolute_import, print_function, unicode_literals
+del absolute_import, print_function, unicode_literals
+
 import sys
 import pyme
 
diff --git a/lang/python/examples/verifydetails.py b/lang/python/examples/verifydetails.py
index 1cd538c..63f40c1 100755
--- a/lang/python/examples/verifydetails.py
+++ b/lang/python/examples/verifydetails.py
@@ -17,6 +17,9 @@
 # You should have received a copy of the GNU 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 os
 from pyme import core
diff --git a/lang/python/gpgme-h-clean.py b/lang/python/gpgme-h-clean.py
index ce368f0..0ec7ab5 100755
--- a/lang/python/gpgme-h-clean.py
+++ b/lang/python/gpgme-h-clean.py
@@ -17,6 +17,9 @@
 #    License along with this library; if not, write to the Free Software
 #    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
 
+from __future__ import absolute_import, print_function, unicode_literals
+del absolute_import, print_function, unicode_literals
+
 import sys, re
 
 if len(sys.argv) != 2:
diff --git a/lang/python/pyme/__init__.py b/lang/python/pyme/__init__.py
index f9e12d0..12c96c2 100644
--- a/lang/python/pyme/__init__.py
+++ b/lang/python/pyme/__init__.py
@@ -99,6 +99,9 @@ GPGME documentation: https://www.gnupg.org/documentation/manuals/gpgme/
 
 """
 
+from __future__ import absolute_import, print_function, unicode_literals
+del absolute_import, print_function, unicode_literals
+
 from . import core
 from . import errors
 from . import constants
diff --git a/lang/python/pyme/callbacks.py b/lang/python/pyme/callbacks.py
index 09f8226..b25a9a7 100644
--- a/lang/python/pyme/callbacks.py
+++ b/lang/python/pyme/callbacks.py
@@ -15,6 +15,9 @@
 #    License along with this library; if not, write to the Free Software
 #    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
 
+from __future__ import absolute_import, print_function, unicode_literals
+del absolute_import, print_function, unicode_literals
+
 from getpass import getpass
 
 def passphrase_stdin(hint, desc, prev_bad, hook=None):
diff --git a/lang/python/pyme/constants/__init__.py b/lang/python/pyme/constants/__init__.py
index 2e91d76..96465de 100644
--- a/lang/python/pyme/constants/__init__.py
+++ b/lang/python/pyme/constants/__init__.py
@@ -1,4 +1,7 @@
 
+from __future__ import absolute_import, print_function, unicode_literals
+del absolute_import, print_function, unicode_literals
+
 from pyme import util
 util.process_constants('GPGME_', globals())
 
diff --git a/lang/python/pyme/constants/data/__init__.py b/lang/python/pyme/constants/data/__init__.py
index ed7b67b..8274ab9 100644
--- a/lang/python/pyme/constants/data/__init__.py
+++ b/lang/python/pyme/constants/data/__init__.py
@@ -1,3 +1,6 @@
 
+from __future__ import absolute_import, print_function, unicode_literals
+del absolute_import, print_function, unicode_literals
+
 from . import encoding
 __all__ = ['encoding']
diff --git a/lang/python/pyme/constants/data/encoding.py b/lang/python/pyme/constants/data/encoding.py
index ac6079c..a05dbb4 100644
--- a/lang/python/pyme/constants/data/encoding.py
+++ b/lang/python/pyme/constants/data/encoding.py
@@ -15,5 +15,8 @@
 #    License along with this library; if not, write to the Free Software
 #    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
 
+from __future__ import absolute_import, print_function, unicode_literals
+del absolute_import, print_function, unicode_literals
+
 from pyme import util
 util.process_constants('GPGME_DATA_ENCODING_', globals())
diff --git a/lang/python/pyme/constants/event.py b/lang/python/pyme/constants/event.py
index 3ce234e..2e30c5e 100644
--- a/lang/python/pyme/constants/event.py
+++ b/lang/python/pyme/constants/event.py
@@ -15,5 +15,8 @@
 #    License along with this library; if not, write to the Free Software
 #    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
 
+from __future__ import absolute_import, print_function, unicode_literals
+del absolute_import, print_function, unicode_literals
+
 from pyme import util
 util.process_constants('GPGME_EVENT_', globals())
diff --git a/lang/python/pyme/constants/import.py b/lang/python/pyme/constants/import.py
index a824f7b..10e7d3c 100644
--- a/lang/python/pyme/constants/import.py
+++ b/lang/python/pyme/constants/import.py
@@ -15,5 +15,8 @@
 #    License along with this library; if not, write to the Free Software
 #    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
 
+from __future__ import absolute_import, print_function, unicode_literals
+del absolute_import, print_function, unicode_literals
+
 from pyme import util
 util.process_constants('GPGME_IMPORT_', globals())
diff --git a/lang/python/pyme/constants/keylist/__init__.py b/lang/python/pyme/constants/keylist/__init__.py
index 8752bb2..2ce0edf 100644
--- a/lang/python/pyme/constants/keylist/__init__.py
+++ b/lang/python/pyme/constants/keylist/__init__.py
@@ -1,3 +1,6 @@
 
+from __future__ import absolute_import, print_function, unicode_literals
+del absolute_import, print_function, unicode_literals
+
 from . import mode
 __all__ = ['mode']
diff --git a/lang/python/pyme/constants/keylist/mode.py b/lang/python/pyme/constants/keylist/mode.py
index 7c3cd09..000dd79 100644
--- a/lang/python/pyme/constants/keylist/mode.py
+++ b/lang/python/pyme/constants/keylist/mode.py
@@ -15,5 +15,8 @@
 #    License along with this library; if not, write to the Free Software
 #    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
 
+from __future__ import absolute_import, print_function, unicode_literals
+del absolute_import, print_function, unicode_literals
+
 from pyme import util
 util.process_constants('GPGME_KEYLIST_MODE_', globals())
diff --git a/lang/python/pyme/constants/md.py b/lang/python/pyme/constants/md.py
index 700d872..dbd762c 100644
--- a/lang/python/pyme/constants/md.py
+++ b/lang/python/pyme/constants/md.py
@@ -15,5 +15,8 @@
 #    License along with this library; if not, write to the Free Software
 #    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
 
+from __future__ import absolute_import, print_function, unicode_literals
+del absolute_import, print_function, unicode_literals
+
 from pyme import util
 util.process_constants('GPGME_MD_', globals())
diff --git a/lang/python/pyme/constants/pk.py b/lang/python/pyme/constants/pk.py
index f0e3937..cfc5309 100644
--- a/lang/python/pyme/constants/pk.py
+++ b/lang/python/pyme/constants/pk.py
@@ -15,5 +15,8 @@
 #    License along with this library; if not, write to the Free Software
 #    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
 
+from __future__ import absolute_import, print_function, unicode_literals
+del absolute_import, print_function, unicode_literals
+
 from pyme import util
 util.process_constants('GPGME_PK_', globals())
diff --git a/lang/python/pyme/constants/protocol.py b/lang/python/pyme/constants/protocol.py
index e9f9a48..a4b6583 100644
--- a/lang/python/pyme/constants/protocol.py
+++ b/lang/python/pyme/constants/protocol.py
@@ -15,5 +15,8 @@
 #    License along with this library; if not, write to the Free Software
 #    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
 
+from __future__ import absolute_import, print_function, unicode_literals
+del absolute_import, print_function, unicode_literals
+
 from pyme import util
 util.process_constants('GPGME_PROTOCOL_', globals())
diff --git a/lang/python/pyme/constants/sig/__init__.py b/lang/python/pyme/constants/sig/__init__.py
index 8752bb2..2ce0edf 100644
--- a/lang/python/pyme/constants/sig/__init__.py
+++ b/lang/python/pyme/constants/sig/__init__.py
@@ -1,3 +1,6 @@
 
+from __future__ import absolute_import, print_function, unicode_literals
+del absolute_import, print_function, unicode_literals
+
 from . import mode
 __all__ = ['mode']
diff --git a/lang/python/pyme/constants/sig/mode.py b/lang/python/pyme/constants/sig/mode.py
index 631bd7c..fb534bc 100644
--- a/lang/python/pyme/constants/sig/mode.py
+++ b/lang/python/pyme/constants/sig/mode.py
@@ -15,5 +15,8 @@
 #    License along with this library; if not, write to the Free Software
 #    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
 
+from __future__ import absolute_import, print_function, unicode_literals
+del absolute_import, print_function, unicode_literals
+
 from pyme import util
 util.process_constants('GPGME_SIG_MODE_', globals())
diff --git a/lang/python/pyme/constants/sigsum.py b/lang/python/pyme/constants/sigsum.py
index 5164347..3d94745 100644
--- a/lang/python/pyme/constants/sigsum.py
+++ b/lang/python/pyme/constants/sigsum.py
@@ -15,5 +15,8 @@
 #    License along with this library; if not, write to the Free Software
 #    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
 
+from __future__ import absolute_import, print_function, unicode_literals
+del absolute_import, print_function, unicode_literals
+
 from pyme import util
 util.process_constants('GPGME_SIGSUM_', globals())
diff --git a/lang/python/pyme/constants/status.py b/lang/python/pyme/constants/status.py
index c1859b2..ee52259 100644
--- a/lang/python/pyme/constants/status.py
+++ b/lang/python/pyme/constants/status.py
@@ -15,5 +15,8 @@
 #    License along with this library; if not, write to the Free Software
 #    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
 
+from __future__ import absolute_import, print_function, unicode_literals
+del absolute_import, print_function, unicode_literals
+
 from pyme import util
 util.process_constants('GPGME_STATUS_', globals())
diff --git a/lang/python/pyme/constants/validity.py b/lang/python/pyme/constants/validity.py
index fde2eee..4ecd4d3 100644
--- a/lang/python/pyme/constants/validity.py
+++ b/lang/python/pyme/constants/validity.py
@@ -15,5 +15,8 @@
 #    License along with this library; if not, write to the Free Software
 #    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
 
+from __future__ import absolute_import, print_function, unicode_literals
+del absolute_import, print_function, unicode_literals
+
 from pyme import util
 util.process_constants('GPGME_VALIDITY_', globals())
diff --git a/lang/python/pyme/core.py b/lang/python/pyme/core.py
index a71426b..55e8687 100644
--- a/lang/python/pyme/core.py
+++ b/lang/python/pyme/core.py
@@ -24,6 +24,9 @@ and the 'Data' class describing buffers of data.
 
 """
 
+from __future__ import absolute_import, print_function, unicode_literals
+del absolute_import, print_function, unicode_literals
+
 import re
 import os
 import weakref
diff --git a/lang/python/pyme/errors.py b/lang/python/pyme/errors.py
index 9c58207..e26c747 100644
--- a/lang/python/pyme/errors.py
+++ b/lang/python/pyme/errors.py
@@ -15,6 +15,9 @@
 #    License along with this library; if not, write to the Free Software
 #    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
 
+from __future__ import absolute_import, print_function, unicode_literals
+del absolute_import, print_function, unicode_literals
+
 from . import gpgme
 from . import util
 
diff --git a/lang/python/pyme/results.py b/lang/python/pyme/results.py
index 374d982..bfc26cc 100644
--- a/lang/python/pyme/results.py
+++ b/lang/python/pyme/results.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
+
 """Robust result objects
 
 Results returned by the underlying library are fragile, i.e. they are
diff --git a/lang/python/pyme/util.py b/lang/python/pyme/util.py
index bf25ccb..e4fca4c 100644
--- a/lang/python/pyme/util.py
+++ b/lang/python/pyme/util.py
@@ -16,6 +16,9 @@
 #    License along with this library; if not, write to the Free Software
 #    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
 
+from __future__ import absolute_import, print_function, unicode_literals
+del absolute_import, print_function, unicode_literals
+
 import sys
 
 def process_constants(prefix, scope):
diff --git a/lang/python/pyme/version.py.in b/lang/python/pyme/version.py.in
index e4a5a27..5fd9ce2 100644
--- a/lang/python/pyme/version.py.in
+++ b/lang/python/pyme/version.py.in
@@ -16,6 +16,9 @@
 # License along with this library; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
 
+from __future__ import absolute_import, print_function
+del absolute_import, print_function
+
 from . import gpgme
 
 productname = 'pyme'
diff --git a/lang/python/tests/final.py b/lang/python/tests/final.py
index 15010af..8e7ab33 100755
--- a/lang/python/tests/final.py
+++ b/lang/python/tests/final.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 os
 import subprocess
 
diff --git a/lang/python/tests/initial.py b/lang/python/tests/initial.py
index 7adaa91..2d4827a 100755
--- a/lang/python/tests/initial.py
+++ b/lang/python/tests/initial.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 os
 import subprocess
 import pyme
diff --git a/lang/python/tests/support.py b/lang/python/tests/support.py
index f42fc2e..4d7135e 100644
--- a/lang/python/tests/support.py
+++ b/lang/python/tests/support.py
@@ -15,6 +15,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 os
 from pyme import core
diff --git a/lang/python/tests/t-callbacks.py b/lang/python/tests/t-callbacks.py
index fc58683..b3b4349 100755
--- a/lang/python/tests/t-callbacks.py
+++ b/lang/python/tests/t-callbacks.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 os
 from pyme import core, constants
 import support
diff --git a/lang/python/tests/t-data.py b/lang/python/tests/t-data.py
index 6e05d13..4812a2e 100755
--- a/lang/python/tests/t-data.py
+++ b/lang/python/tests/t-data.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 io
 import os
 import tempfile
diff --git a/lang/python/tests/t-decrypt-verify.py b/lang/python/tests/t-decrypt-verify.py
index 6518d79..a38a965 100755
--- a/lang/python/tests/t-decrypt-verify.py
+++ b/lang/python/tests/t-decrypt-verify.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 pyme
 from pyme import core, constants, errors
 import support
diff --git a/lang/python/tests/t-decrypt.py b/lang/python/tests/t-decrypt.py
index 3b0c484..2d85bc2 100755
--- a/lang/python/tests/t-decrypt.py
+++ b/lang/python/tests/t-decrypt.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 pyme
 from pyme import core, constants
 import support
diff --git a/lang/python/tests/t-edit.py b/lang/python/tests/t-edit.py
index 8bebe67..9ba187d 100755
--- a/lang/python/tests/t-edit.py
+++ b/lang/python/tests/t-edit.py
@@ -18,6 +18,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 os
 from pyme import core, constants
diff --git a/lang/python/tests/t-encrypt-large.py b/lang/python/tests/t-encrypt-large.py
index d5b9dc9..b9cc3b5 100755
--- a/lang/python/tests/t-encrypt-large.py
+++ b/lang/python/tests/t-encrypt-large.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 random
 from pyme import core, constants
diff --git a/lang/python/tests/t-encrypt-sign.py b/lang/python/tests/t-encrypt-sign.py
index 8c4b5d9..a453f79 100755
--- a/lang/python/tests/t-encrypt-sign.py
+++ b/lang/python/tests/t-encrypt-sign.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 pyme
 from pyme import core, constants
diff --git a/lang/python/tests/t-encrypt-sym.py b/lang/python/tests/t-encrypt-sym.py
index c279d6a..d577184 100755
--- a/lang/python/tests/t-encrypt-sym.py
+++ b/lang/python/tests/t-encrypt-sym.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 os
 import pyme
 from pyme import core, constants
diff --git a/lang/python/tests/t-encrypt.py b/lang/python/tests/t-encrypt.py
index 456f2c1..65e7d24 100755
--- a/lang/python/tests/t-encrypt.py
+++ b/lang/python/tests/t-encrypt.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 pyme
 from pyme import core, constants
 import support
diff --git a/lang/python/tests/t-export.py b/lang/python/tests/t-export.py
index f8d02f2..db36b98 100755
--- a/lang/python/tests/t-export.py
+++ b/lang/python/tests/t-export.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
+
 from pyme import core, constants
 import support
 
diff --git a/lang/python/tests/t-file-name.py b/lang/python/tests/t-file-name.py
index 09eb1f9..e93b120 100755
--- a/lang/python/tests/t-file-name.py
+++ b/lang/python/tests/t-file-name.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 os
 from pyme import core, constants
 import support
diff --git a/lang/python/tests/t-idiomatic.py b/lang/python/tests/t-idiomatic.py
index 6dbe620..f063206 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
diff --git a/lang/python/tests/t-import.py b/lang/python/tests/t-import.py
index b267fc8..0b50d02 100755
--- a/lang/python/tests/t-import.py
+++ b/lang/python/tests/t-import.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
+
 from pyme import core, constants
 import support
 
diff --git a/lang/python/tests/t-keylist.py b/lang/python/tests/t-keylist.py
index 7b7bbae..5e8b333 100755
--- a/lang/python/tests/t-keylist.py
+++ b/lang/python/tests/t-keylist.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
+
 from pyme import core, constants
 import support
 
diff --git a/lang/python/tests/t-protocol-assuan.py b/lang/python/tests/t-protocol-assuan.py
index a86146b..172c7d0 100755
--- a/lang/python/tests/t-protocol-assuan.py
+++ b/lang/python/tests/t-protocol-assuan.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 pyme
 
 with pyme.Context(protocol=pyme.constants.PROTOCOL_ASSUAN) as c:
diff --git a/lang/python/tests/t-sig-notation.py b/lang/python/tests/t-sig-notation.py
index c523006..777bc0b 100755
--- a/lang/python/tests/t-sig-notation.py
+++ b/lang/python/tests/t-sig-notation.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 os
 from pyme import core, constants
 import support
diff --git a/lang/python/tests/t-sign.py b/lang/python/tests/t-sign.py
index 5f26ff3..b0e211a 100755
--- a/lang/python/tests/t-sign.py
+++ b/lang/python/tests/t-sign.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 os
 import pyme
 from pyme import core, constants
diff --git a/lang/python/tests/t-signers.py b/lang/python/tests/t-signers.py
index 7b064c9..11403af 100755
--- a/lang/python/tests/t-signers.py
+++ b/lang/python/tests/t-signers.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 pyme
 from pyme import core, constants
 import support
diff --git a/lang/python/tests/t-trustlist.py b/lang/python/tests/t-trustlist.py
index a33e35e..4253bd7 100755
--- a/lang/python/tests/t-trustlist.py
+++ b/lang/python/tests/t-trustlist.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
+
 from pyme import core, constants
 import support
 
diff --git a/lang/python/tests/t-verify.py b/lang/python/tests/t-verify.py
index 25c8c0c..39f6176 100755
--- a/lang/python/tests/t-verify.py
+++ b/lang/python/tests/t-verify.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 os
 import pyme
diff --git a/lang/python/tests/t-wait.py b/lang/python/tests/t-wait.py
index 9f3a7ed..b7d9a34 100755
--- a/lang/python/tests/t-wait.py
+++ b/lang/python/tests/t-wait.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 time
 from pyme import core, constants, errors
 import support

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gpgme.git



More information about the Pkg-gnupg-commit mailing list