Skip to content

Commit 9038c3f

Browse files
committed
Remove unnecessary logging, some comments and correct a typo.
1 parent 6ca3eb5 commit 9038c3f

3 files changed

Lines changed: 1 addition & 6 deletions

File tree

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Released: Not yet
8181

8282
* Fix #250: Capture uid info in a uid_map attribute of ScanKeys/ListKeys.
8383

84-
* Fix #255: Improve handling of exceptions raised in background threads,
84+
* Fix #255: Improve handling of exceptions raised in background threads.
8585

8686

8787
0.5.4

gnupg.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ def _copy_data(instream, outstream, buffer_size, error_queue):
157157
except Exception as e: # pragma: no cover
158158
logger.warning('Exception occurred while reading', exc_info=1)
159159
error_queue.put_nowait(e)
160-
logger.debug('queued exception: %s', e)
161160
break
162161
if not data:
163162
break
@@ -172,7 +171,6 @@ def _copy_data(instream, outstream, buffer_size, error_queue):
172171
# been sent
173172
logger.exception('Error sending data')
174173
error_queue.put_nowait(e)
175-
logger.debug('queued exception: %s', e)
176174
break
177175
try:
178176
outstream.close()

test_gnupg.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,9 +1171,6 @@ def do_file_encryption_and_decryption(self, encfname, decfname):
11711171
logger.debug('about to pass text stream to decrypt_file')
11721172
with open(encfname, 'r') as efile:
11731173
self.assertRaises(UnicodeDecodeError, self.gpg.decrypt_file, efile, passphrase='bbrown', output=decfname)
1174-
# self.assertEqual(2, ddata.returncode, 'Unexpected return code')
1175-
# self.assertFalse(ddata)
1176-
# self.assertEqual(ddata.status, 'no data was provided')
11771174
finally:
11781175
for fn in (encfname, decfname):
11791176
if os.name == 'posix' and mode is not None:

0 commit comments

Comments
 (0)