Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop unneccessary duplicate string registrations #428

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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