[Zope3-checkins] SVN: Zope3/branches/ZopeX3-3.0/src/zope/app/onlinehelp/onlinehelptopic.py OnlineHelpResource.__init__()

Tim Peters tim.one at comcast.net
Thu Jun 3 16:40:54 EDT 2004


Log message for revision 25243:
OnlineHelpResource.__init__()
Merge Windows fix from trunk:  open binary files in binary mode.
Repairs Windows-specific test failures.


-=-
Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/onlinehelp/onlinehelptopic.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/onlinehelp/onlinehelptopic.py	2004-06-03 20:38:44 UTC (rev 25242)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/onlinehelp/onlinehelptopic.py	2004-06-03 20:40:53 UTC (rev 25243)
@@ -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