[CalendarServer-changes] [6633] CalendarServer/trunk/contrib/performance

source_changes at macosforge.org source_changes at macosforge.org
Mon Nov 15 10:37:30 PST 2010


Revision: 6633
          http://trac.macosforge.org/projects/calendarserver/changeset/6633
Author:   exarkun at twistedmatrix.com
Date:     2010-11-15 10:37:27 -0800 (Mon, 15 Nov 2010)
Log Message:
-----------
pyflakes and whitespace cleanups

Modified Paths:
--------------
    CalendarServer/trunk/contrib/performance/benchlib.py
    CalendarServer/trunk/contrib/performance/compare.py
    CalendarServer/trunk/contrib/performance/graph.py
    CalendarServer/trunk/contrib/performance/test_event_change_date.py

Modified: CalendarServer/trunk/contrib/performance/benchlib.py
===================================================================
--- CalendarServer/trunk/contrib/performance/benchlib.py	2010-11-14 00:03:38 UTC (rev 6632)
+++ CalendarServer/trunk/contrib/performance/benchlib.py	2010-11-15 18:37:27 UTC (rev 6633)
@@ -1,10 +1,11 @@
 import pickle
 from time import time
 
-from twisted.internet.defer import DeferredSemaphore, inlineCallbacks, returnValue, gatherResults
-from twisted.internet.task import deferLater
+from twisted.internet.defer import (
+    DeferredSemaphore, inlineCallbacks, returnValue, gatherResults)
+# from twisted.internet.task import deferLater
 from twisted.web.http_headers import Headers
-from twisted.internet import reactor
+# from twisted.internet import reactor
 from twisted.python.log import msg
 
 from stats import Duration
@@ -26,7 +27,8 @@
 
 
     def makeCalendar(self, url):
-        return self.agent.request('MKCALENDAR', 'http://%s%s' % (self.netloc, url))
+        return self.agent.request(
+            'MKCALENDAR', 'http://%s%s' % (self.netloc, url))
 
 
     def writeData(self, url, data, contentType):

Modified: CalendarServer/trunk/contrib/performance/compare.py
===================================================================
--- CalendarServer/trunk/contrib/performance/compare.py	2010-11-14 00:03:38 UTC (rev 6632)
+++ CalendarServer/trunk/contrib/performance/compare.py	2010-11-15 18:37:27 UTC (rev 6633)
@@ -1,4 +1,4 @@
-import sys, pickle
+import sys
 
 import stats
 

Modified: CalendarServer/trunk/contrib/performance/graph.py
===================================================================
--- CalendarServer/trunk/contrib/performance/graph.py	2010-11-14 00:03:38 UTC (rev 6632)
+++ CalendarServer/trunk/contrib/performance/graph.py	2010-11-15 18:37:27 UTC (rev 6633)
@@ -1,5 +1,5 @@
 
-import sys, pickle
+import sys
 
 from matplotlib import pyplot
 import numpy
@@ -22,4 +22,4 @@
     ax.set_xlabel('sample #')
     ax.set_ylabel('seconds')
     ax.legend(bars, sys.argv[1:])
-    pyplot.show()    
+    pyplot.show()

Modified: CalendarServer/trunk/contrib/performance/test_event_change_date.py
===================================================================
--- CalendarServer/trunk/contrib/performance/test_event_change_date.py	2010-11-14 00:03:38 UTC (rev 6632)
+++ CalendarServer/trunk/contrib/performance/test_event_change_date.py	2010-11-15 18:37:27 UTC (rev 6633)
@@ -57,8 +57,6 @@
         values by one hour times the counter parameter.
         """
         oldCalendar = calendarHead + calendarDates + calendarTail
-        start = datetime.datetime(2010, 7, 30, 11, 15, 5) + datetime.timedelta(hours=1)
-        end = datetime.datetime(2010, 7, 30, 11, 15, 8) + datetime.timedelta(hours=1)
         newCalendar = replaceTimestamp(oldCalendar, 3)
         self.assertEquals(
             calendarHead +
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20101115/7cdddc9f/attachment.html>


More information about the calendarserver-changes mailing list