From 2b409f4c6e37d2a65b9bfbc3e918720f1967113b Mon Sep 17 00:00:00 2001 From: KOLANICH Date: Thu, 24 Nov 2022 20:24:53 +0300 Subject: [PATCH] Removed unneeded traced of Python 2 related to division --- pgpy/packet/fields.py | 3 +-- pgpy/packet/types.py | 1 - pgpy/types.py | 1 - tests/test_04_copy.py | 1 - 4 files changed, 1 insertion(+), 5 deletions(-) diff --git a/pgpy/packet/fields.py b/pgpy/packet/fields.py index 4f0fd3ef..f5b989a7 100644 --- a/pgpy/packet/fields.py +++ b/pgpy/packet/fields.py @@ -1,6 +1,5 @@ """ fields.py """ -from __future__ import absolute_import, division import abc import binascii @@ -1017,7 +1016,7 @@ def derive_key(self, passphrase): keylen = self.encalg.key_size hashlen = self.halg.digest_size * 8 - ctx = int(math.ceil((keylen / hashlen))) + ctx = int(math.ceil(keylen / hashlen)) # Simple S2K - always done hsalt = b'' diff --git a/pgpy/packet/types.py b/pgpy/packet/types.py index 18855e91..d8e7cd40 100644 --- a/pgpy/packet/types.py +++ b/pgpy/packet/types.py @@ -1,6 +1,5 @@ """ types.py """ -from __future__ import division import abc import copy diff --git a/pgpy/types.py b/pgpy/types.py index d8b7989a..61250541 100644 --- a/pgpy/types.py +++ b/pgpy/types.py @@ -1,6 +1,5 @@ """ types.py """ -from __future__ import division import abc import base64 diff --git a/tests/test_04_copy.py b/tests/test_04_copy.py index 669950aa..2cf8fba0 100644 --- a/tests/test_04_copy.py +++ b/tests/test_04_copy.py @@ -1,6 +1,5 @@ """ test copying PGP objects """ -from __future__ import print_function import pytest import copy