Closed isislovecruft closed 10 years ago
I've been hard at work on these. Of note:
Exception
no longer has a message
attribute, so I've been using str(exception)
in its place, which appears to be equivalent…KeyError
, where the proper idiom looks like it should have been keyerror.args[0]
to reference the missing key.bytes
/str
fixup.I'm currently stuck here though:
======================================================================
ERROR: test_file_encryption_and_decryption (__main__.GPGTestCase)
Test that encryption/decryption to/from file works.
----------------------------------------------------------------------
Traceback (most recent call last):
File "./gnupg/test/test_gnupg.py", line 984, in test_file_encryption_and_decryption
data = data.encode(self.gpg._encoding)
AttributeError: 'bytes' object has no attribute 'encode'
which is driving me batty because I don't get why data
is a bytes
. It was read in text mode from msg
, it should be a str
… shouldn't it?
Issue #43 was fixed by @zigg, so this issue should have been fixed in version 1.2.6. Thanks again, @zigg!
most of these are due to trivialities, such as Exception objects no longer having a
message
attribute, and bytestrings being returned and then compared to string literals. should be easy to fix.