Skip to content

Commit

Permalink
PEP-8: whitespace tuneup
Browse files Browse the repository at this point in the history
  • Loading branch information
dkg committed Jun 16, 2023
1 parent 8b30ea0 commit 4915ce0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions pgpy/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,7 @@ def _missing_(cls, val: object) -> 'String2KeyType':
raise TypeError(f"cannot look up String2KeyType by non-int {type(val)}")
return cls.Unknown


class S2KGNUExtension(IntEnum):
NoSecret = 1
Smartcard = 2
Expand Down
1 change: 1 addition & 0 deletions pgpy/pgp.py
Original file line number Diff line number Diff line change
Expand Up @@ -648,6 +648,7 @@ def parse(self, packet: bytes) -> None:
else:
raise ValueError(f"Expected: Signature. Got: {format(pkt.__class__.__name__)}")


class PGPUID(ParentRef):
@property
def __sig__(self):
Expand Down
1 change: 1 addition & 0 deletions pgpy/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -748,6 +748,7 @@ def __repr__(self):

class SorteDeque(collections.deque):
"""A deque subclass that tries to maintain sorted ordering using bisect"""

def insort(self, item):
i = bisect.bisect_left(self, item)
self.rotate(- i)
Expand Down

0 comments on commit 4915ce0

Please sign in to comment.