[Checkins] SVN: zope.file/branches/ajung-blobs/src/zope/file/file.py some fixes

Andreas Jung andreas at andreas-jung.com
Mon Feb 26 18:24:20 EST 2007


Log message for revision 72849:
  some fixes
  

Changed:
  U   zope.file/branches/ajung-blobs/src/zope/file/file.py

-=-
Modified: zope.file/branches/ajung-blobs/src/zope/file/file.py
===================================================================
--- zope.file/branches/ajung-blobs/src/zope/file/file.py	2007-02-26 23:23:58 UTC (rev 72848)
+++ zope.file/branches/ajung-blobs/src/zope/file/file.py	2007-02-26 23:24:19 UTC (rev 72849)
@@ -65,10 +65,10 @@
     def size(self):
         if self._data == "":
             return 0
-        fp = self._data.open('r')
-        fp.seek(0, 2)
-        size = int(fp.tell())
-        fp.close()
+        reader = self.open()
+        reader.seek(0,2)
+        size = int(reader.tell())
+        reader.close()
         return size
 
 



More information about the Checkins mailing list