[CalendarServer-changes] [6896] CalendarServer/branches/users/glyph/linux-tests/txdav/base/datastore /file.py

source_changes at macosforge.org source_changes at macosforge.org
Mon Feb 7 04:38:57 PST 2011


Revision: 6896
          http://trac.macosforge.org/projects/calendarserver/changeset/6896
Author:   glyph at apple.com
Date:     2011-02-07 04:38:56 -0800 (Mon, 07 Feb 2011)
Log Message:
-----------
Force file size to be an 'int' rather than a 'long' to pacify tests on all platforms.  (The only thing we might even hypothetically support >4GB would be attachments, so special case that later if necessary.)

Modified Paths:
--------------
    CalendarServer/branches/users/glyph/linux-tests/txdav/base/datastore/file.py

Modified: CalendarServer/branches/users/glyph/linux-tests/txdav/base/datastore/file.py
===================================================================
--- CalendarServer/branches/users/glyph/linux-tests/txdav/base/datastore/file.py	2011-02-07 12:38:45 UTC (rev 6895)
+++ CalendarServer/branches/users/glyph/linux-tests/txdav/base/datastore/file.py	2011-02-07 12:38:56 UTC (rev 6896)
@@ -240,7 +240,7 @@
         @rtype: C{int}
         """
         if self._path.exists():
-            return self._path.getsize()
+            return int(self._path.getsize())
         else:
             return 0
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110207/85775b11/attachment.html>


More information about the calendarserver-changes mailing list