Skip to content

Commit

Permalink
Removed unneeded traced of Python 2 related to division
Browse files Browse the repository at this point in the history
  • Loading branch information
KOLANICH committed Nov 24, 2022
1 parent d342d3f commit 2b409f4
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 5 deletions.
3 changes: 1 addition & 2 deletions pgpy/packet/fields.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
""" fields.py
"""
from __future__ import absolute_import, division

import abc
import binascii
Expand Down Expand Up @@ -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''
Expand Down
1 change: 0 additions & 1 deletion pgpy/packet/types.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
""" types.py
"""
from __future__ import division

import abc
import copy
Expand Down
1 change: 0 additions & 1 deletion pgpy/types.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
""" types.py
"""
from __future__ import division

import abc
import base64
Expand Down
1 change: 0 additions & 1 deletion tests/test_04_copy.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
""" test copying PGP objects
"""
from __future__ import print_function
import pytest

import copy
Expand Down

0 comments on commit 2b409f4

Please sign in to comment.