Parse NODATA status code in _parsers.Sign.

testing/mmn/mktime_takes_localtime_not_gmtime
Isis Lovecruft 2013-05-22 17:37:05 +00:00
parent 75f3a4a89e
commit 596d6cd2d3
No known key found for this signature in database
GPG Key ID: A3ADB67A2CDB8B35
1 changed files with 3 additions and 1 deletions

View File

@ -767,11 +767,13 @@ class Sign(object):
"""
if key in ("USERID_HINT", "NEED_PASSPHRASE", "BAD_PASSPHRASE",
"GOOD_PASSPHRASE", "BEGIN_SIGNING", "CARDCTRL",
"INV_SGNR", "NODATA"):
"INV_SGNR"):
pass
elif key == "SIG_CREATED":
(self.sig_type, self.sig_algo, self.sig_hash_algo,
self.what, self.timestamp, self.fingerprint) = value.split()
elif key == "NODATA":
self.status = nodata(value)
else:
raise ValueError("Unknown status message: %r" % key)