* [gentoo-commits] portage r14060 - main/trunk/pym/portage
@ 2009-08-15 6:48 Zac Medico (zmedico)
0 siblings, 0 replies; only message in thread
From: Zac Medico (zmedico) @ 2009-08-15 6:48 UTC (permalink / raw
To: gentoo-commits
Author: zmedico
Date: 2009-08-15 06:48:15 +0000 (Sat, 15 Aug 2009)
New Revision: 14060
Modified:
main/trunk/pym/portage/checksum.py
Log:
Make _generate_hash_function() use _fs_encoding to encode the filename
(if it's not already encoded), and enable errors='strict'.
Modified: main/trunk/pym/portage/checksum.py
===================================================================
--- main/trunk/pym/portage/checksum.py 2009-08-15 06:42:40 UTC (rev 14059)
+++ main/trunk/pym/portage/checksum.py 2009-08-15 06:48:15 UTC (rev 14060)
@@ -27,7 +27,8 @@
@type filename: String
@return: The hash and size of the data
"""
- f = open(_unicode_encode(filename), 'rb')
+ f = open(_unicode_encode(filename,
+ encoding=_fs_encoding, errors='strict'), 'rb')
blocksize = HASHING_BLOCKSIZE
data = f.read(blocksize)
size = 0L
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-08-15 6:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-15 6:48 [gentoo-commits] portage r14060 - main/trunk/pym/portage Zac Medico (zmedico)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox