[Zope3-checkins] CVS: Zope3/src/zope/app/content - file.py:1.13

Fred L. Drake, Jr. fred at zope.com
Tue Aug 26 15:17:19 EDT 2003


Update of /cvs-repository/Zope3/src/zope/app/content
In directory cvs.zope.org:/tmp/cvs-serv20067

Modified Files:
	file.py 
Log Message:
not sure why I noticed this, but... simplify!


=== Zope3/src/zope/app/content/file.py 1.12 => 1.13 ===
--- Zope3/src/zope/app/content/file.py:1.12	Tue Aug 26 14:00:25 2003
+++ Zope3/src/zope/app/content/file.py	Tue Aug 26 14:17:18 2003
@@ -69,11 +69,7 @@
             data = data.encode('UTF-8')
 
         if isinstance(data, str):
-            size = len(data)
-            if size < MAXCHUNKSIZE:
-                self._data, self._size = FileChunk(data), size
-                return
-            self._data, self._size = FileChunk(data), size
+            self._data, self._size = FileChunk(data), len(data)
             return
 
         # Handle case when data is None




More information about the Zope3-Checkins mailing list