Skip to content

Commit

Permalink
Drop unneccessary duplicate string registrations
Browse files Browse the repository at this point in the history
(these were introduced accidentally when KOLANICH removed the six
module in a23dcce)
  • Loading branch information
dkg committed May 3, 2023
1 parent 30a7571 commit 2a37a53
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion pgpy/packet/packets.py
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,6 @@ def halg_int(self, val):
def signer(self):
return self._signer

@signer.register(str)
@signer.register(str)
def signer_str(self, val):
self._signer = val
Expand Down
9 changes: 0 additions & 9 deletions pgpy/packet/subpackets/signature.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ class URI(Signature):
def uri(self):
return self._uri

@uri.register(str)
@uri.register(str)
def uri_str(self, val):
self._uri = val
Expand Down Expand Up @@ -417,7 +416,6 @@ class RegularExpression(Signature):
def regex(self):
return self._regex

@regex.register(str)
@regex.register(str)
def regex_str(self, val):
self._regex = val
Expand Down Expand Up @@ -547,7 +545,6 @@ def algorithm_bytearray(self, val):
def fingerprint(self):
return self._fingerprint

@fingerprint.register(str)
@fingerprint.register(str)
@fingerprint.register(Fingerprint)
def fingerprint_str(self, val):
Expand Down Expand Up @@ -630,7 +627,6 @@ def flags_bytearray(self, val):
def name(self):
return self._name

@name.register(str)
@name.register(str)
def name_str(self, val):
self._name = val
Expand All @@ -643,7 +639,6 @@ def name_bytearray(self, val):
def value(self):
return self._value

@value.register(str)
@value.register(str)
def value_str(self, val):
self._value = val
Expand Down Expand Up @@ -760,7 +755,6 @@ class SignersUserID(Signature):
def userid(self):
return self._userid

@userid.register(str)
@userid.register(str)
def userid_str(self, val):
self._userid = val
Expand Down Expand Up @@ -804,7 +798,6 @@ def code_bytearray(self, val):
def string(self):
return self._string

@string.register(str)
@string.register(str)
def string_str(self, val):
self._string = val
Expand Down Expand Up @@ -931,7 +924,6 @@ def version_bytearray(self, val):
def issuer_fingerprint(self):
return self._issuer_fpr

@issuer_fingerprint.register(str)
@issuer_fingerprint.register(str)
@issuer_fingerprint.register(Fingerprint)
def issuer_fingerprint_str(self, val):
Expand Down Expand Up @@ -1003,7 +995,6 @@ def version_bytearray(self, val):
def intended_recipient(self):
return self._intended_recipient

@intended_recipient.register(str)
@intended_recipient.register(str)
@intended_recipient.register(Fingerprint)
def intended_recipient_str(self, val):
Expand Down

0 comments on commit 2a37a53

Please sign in to comment.