[Checkins] SVN: zc.buildout/branches/python-3-2/src/zc/buildout/buildout.py Binary and text modes are now meaningful on non-windows systems in
Jim Fulton
jim at zope.com
Fri Mar 18 06:50:10 EDT 2011
Log message for revision 121025:
Binary and text modes are now meaningful on non-windows systems in
Python 3.
Changed:
U zc.buildout/branches/python-3-2/src/zc/buildout/buildout.py
-=-
Modified: zc.buildout/branches/python-3-2/src/zc/buildout/buildout.py
===================================================================
--- zc.buildout/branches/python-3-2/src/zc/buildout/buildout.py 2011-03-18 08:20:38 UTC (rev 121024)
+++ zc.buildout/branches/python-3-2/src/zc/buildout/buildout.py 2011-03-18 10:50:09 UTC (rev 121025)
@@ -1478,7 +1478,7 @@
hash.update(' '.join(dirnames).encode())
hash.update(' '.join(filenames).encode())
for name in filenames:
- hash.update(open(os.path.join(dirpath, name)).read().encode())
+ hash.update(open(os.path.join(dirpath, name), 'rb').read())
_dir_hashes[dir] = dir_hash = hash.hexdigest()
return dir_hash
More information about the checkins
mailing list