[Zope3-checkins]
SVN: Zope3/trunk/src/zope/app/onlinehelp/onlinehelptopic.py
OnlineHelpResource.__init__(): When reading the data from the
Tim Peters
tim.one at comcast.net
Thu Jun 3 15:23:57 EDT 2004
Log message for revision 25240:
OnlineHelpResource.__init__(): When reading the data from the
file, open the file in binary mode. Else the tests fail on
Windows for binary files (.png). Now they pass.
-=-
Modified: Zope3/trunk/src/zope/app/onlinehelp/onlinehelptopic.py
===================================================================
--- Zope3/trunk/src/zope/app/onlinehelp/onlinehelptopic.py 2004-06-03 19:04:37 UTC (rev 25239)
+++ Zope3/trunk/src/zope/app/onlinehelp/onlinehelptopic.py 2004-06-03 19:23:57 UTC (rev 25240)
@@ -47,7 +47,7 @@
def __init__(self, path='', contentType=''):
self.path = path
- _data = open(os.path.normpath(self.path)).read()
+ _data = open(os.path.normpath(self.path), 'rb').read()
self._size=len(path)
if contentType=='':
More information about the Zope3-Checkins
mailing list