Author: poeml Date: Wed Mar 2 21:26:35 2011 New Revision: 8240 URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain?rev=8240&view=rev Log: mb makehashes: - fix handling of non-availability of SHA256 cipher with old python (issue #85) Modified: trunk/mb/mb/hashes.py Modified: trunk/mb/mb/hashes.py URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain/trunk/mb/mb/hashes.py?rev=8240&r1=8239&r2=8240&view=diff ============================================================================== --- trunk/mb/mb/hashes.py (original) +++ trunk/mb/mb/hashes.py Wed Mar 2 21:26:35 2011 _at_@ -455,7 +455,7 @@ '12:piece length', 'i', str(self.chunk_size), 'e', '6:pieces', str(len(self.pieces) * SHA1_DIGESTSIZE), ':', ''.join(self.pieces), '4:sha1', str(SHA1_DIGESTSIZE), ':', self.sha1, - '6:sha256', str(SHA256_DIGESTSIZE), ':', self.sha256, + '6:sha256', str(SHA256_DIGESTSIZE), ':', self.sha256 or '', 'e'] h = sha1.sha1() _______________________________________________ mirrorbrain-commits mailing list Archive: http://mirrorbrain.org/archive/mirrorbrain-commits/ Note: To remove yourself from this list, send a mail with the content unsubscribe to the address mirrorbrain-commits-request_at_mirrorbrain.orgReceived on Wed Mar 02 2011 - 20:26:40 GMT
This archive was generated by hypermail 2.3.0 : Mon Feb 20 2012 - 23:47:04 GMT