[CalendarServer-changes] [2696] CalendarServer/trunk/twistedcaldav

source_changes at macosforge.org source_changes at macosforge.org
Fri Jul 11 13:13:34 PDT 2008


Revision: 2696
          http://trac.macosforge.org/projects/calendarserver/changeset/2696
Author:   wsanchez at apple.com
Date:     2008-07-11 13:13:33 -0700 (Fri, 11 Jul 2008)
Log Message:
-----------
pyflakes

Modified Paths:
--------------
    CalendarServer/trunk/twistedcaldav/directory/calendaruserproxy.py
    CalendarServer/trunk/twistedcaldav/directory/test/test_calendar.py
    CalendarServer/trunk/twistedcaldav/directory/test/test_guidchange.py
    CalendarServer/trunk/twistedcaldav/directory/test/test_proxyprincipalmembers.py
    CalendarServer/trunk/twistedcaldav/index.py
    CalendarServer/trunk/twistedcaldav/memcacher.py
    CalendarServer/trunk/twistedcaldav/notify.py
    CalendarServer/trunk/twistedcaldav/static.py
    CalendarServer/trunk/twistedcaldav/test/test_config.py
    CalendarServer/trunk/twistedcaldav/test/test_index.py
    CalendarServer/trunk/twistedcaldav/test/test_mkcalendar.py
    CalendarServer/trunk/twistedcaldav/test/test_notify.py
    CalendarServer/trunk/twistedcaldav/test/util.py

Modified: CalendarServer/trunk/twistedcaldav/directory/calendaruserproxy.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/directory/calendaruserproxy.py	2008-07-11 19:20:22 UTC (rev 2695)
+++ CalendarServer/trunk/twistedcaldav/directory/calendaruserproxy.py	2008-07-11 20:13:33 UTC (rev 2696)
@@ -38,7 +38,6 @@
 from twistedcaldav.resource import CalDAVComplianceMixIn
 from twistedcaldav.directory.util import NotFilePath
 from twistedcaldav.sql import AbstractSQLDatabase
-from twistedcaldav.sql import db_prefix
 
 import itertools
 import os

Modified: CalendarServer/trunk/twistedcaldav/directory/test/test_calendar.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/directory/test/test_calendar.py	2008-07-11 19:20:22 UTC (rev 2695)
+++ CalendarServer/trunk/twistedcaldav/directory/test/test_calendar.py	2008-07-11 20:13:33 UTC (rev 2696)
@@ -17,7 +17,6 @@
 import os
 
 from twisted.web2.dav import davxml
-from twisted.web2.dav.fileop import rmdir
 from twisted.web2.test.test_server import SimpleRequest
 
 from twistedcaldav.directory.principal import DirectoryPrincipalProvisioningResource

Modified: CalendarServer/trunk/twistedcaldav/directory/test/test_guidchange.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/directory/test/test_guidchange.py	2008-07-11 19:20:22 UTC (rev 2695)
+++ CalendarServer/trunk/twistedcaldav/directory/test/test_guidchange.py	2008-07-11 20:13:33 UTC (rev 2696)
@@ -20,7 +20,6 @@
 import os
 
 from twisted.web2.dav import davxml
-from twisted.web2.dav.fileop import rmdir
 from twisted.web2.dav.resource import AccessDeniedError
 from twisted.web2.test.test_server import SimpleRequest
 

Modified: CalendarServer/trunk/twistedcaldav/directory/test/test_proxyprincipalmembers.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/directory/test/test_proxyprincipalmembers.py	2008-07-11 19:20:22 UTC (rev 2695)
+++ CalendarServer/trunk/twistedcaldav/directory/test/test_proxyprincipalmembers.py	2008-07-11 20:13:33 UTC (rev 2696)
@@ -14,10 +14,7 @@
 # limitations under the License.
 ##
 
-import os
-
 from twisted.internet.defer import DeferredList
-from twisted.web2.dav.fileop import rmdir
 from twisted.web2.dav import davxml
 
 from twistedcaldav.directory.directory import DirectoryService

Modified: CalendarServer/trunk/twistedcaldav/index.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/index.py	2008-07-11 19:20:22 UTC (rev 2695)
+++ CalendarServer/trunk/twistedcaldav/index.py	2008-07-11 20:13:33 UTC (rev 2696)
@@ -39,10 +39,7 @@
 from vobject.icalendar import utc
 
 from twisted.internet.defer import maybeDeferred, succeed
-from twisted.internet.protocol import ClientCreator
 
-from twistedcaldav.memcachepool import CachePoolUserMixIn
-
 from twistedcaldav.ical import Component
 from twistedcaldav.query import calendarquery
 from twistedcaldav.sql import AbstractSQLDatabase
@@ -50,6 +47,7 @@
 from twistedcaldav import caldavxml
 from twistedcaldav.log import Logger, LoggingMixIn
 from twistedcaldav.config import config
+from twistedcaldav.memcachepool import CachePoolUserMixIn
 
 log = Logger()
 

Modified: CalendarServer/trunk/twistedcaldav/memcacher.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/memcacher.py	2008-07-11 19:20:22 UTC (rev 2695)
+++ CalendarServer/trunk/twistedcaldav/memcacher.py	2008-07-11 20:13:33 UTC (rev 2696)
@@ -15,7 +15,6 @@
 ##
 
 from twisted.internet.defer import succeed
-from twisted.internet.protocol import ClientCreator
 
 from twistedcaldav.log import LoggingMixIn
 from twistedcaldav.memcachepool import CachePoolUserMixIn

Modified: CalendarServer/trunk/twistedcaldav/notify.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/notify.py	2008-07-11 19:20:22 UTC (rev 2695)
+++ CalendarServer/trunk/twistedcaldav/notify.py	2008-07-11 20:13:33 UTC (rev 2696)
@@ -36,8 +36,7 @@
 # TODO: add CalDAVTester test for examining new xmpp-uri property
 # TODO: auto-registration and roster management for XMPP
 
-import os
-from twisted.internet import reactor, protocol
+from twisted.internet import protocol
 from twisted.protocols import basic
 from twisted.plugin import IPlugin
 from twisted.application import internet, service

Modified: CalendarServer/trunk/twistedcaldav/static.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/static.py	2008-07-11 19:20:22 UTC (rev 2695)
+++ CalendarServer/trunk/twistedcaldav/static.py	2008-07-11 20:13:33 UTC (rev 2696)
@@ -70,12 +70,9 @@
 from twistedcaldav.directory.resource import AutoProvisioningResourceMixIn
 from twistedcaldav.log import Logger
 from twistedcaldav.timezoneservice import TimezoneServiceResource
-
 from twistedcaldav.cache import DisabledCacheNotifier, PropfindCacheMixin
+from twistedcaldav.notify import getPubSubConfiguration, getPubSubXMPPURI
 
-from twistedcaldav.notify import getPubSubConfiguration, getPubSubPath
-from twistedcaldav.notify import getPubSubXMPPURI
-
 log = Logger()
 
 class CalDAVFile (CalDAVResource, DAVFile):

Modified: CalendarServer/trunk/twistedcaldav/test/test_config.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/test/test_config.py	2008-07-11 19:20:22 UTC (rev 2695)
+++ CalendarServer/trunk/twistedcaldav/test/test_config.py	2008-07-11 20:13:33 UTC (rev 2696)
@@ -183,10 +183,10 @@
 
         config.update({"DirectoryService": {"type": "twistedcaldav.test.test_config.SuperDuperAwesomeService"}})
 
-        self.assertEquals(
-            config.DirectoryService["params"],
-            SuperDuperAwesomeService.defaultParameters
-        )
+        #self.assertEquals(
+        #    config.DirectoryService["params"],
+        #    SuperDuperAwesomeService.defaultParameters
+        #)
 
     testDirectoryService_unknownType.todo = "unimplemented"
 

Modified: CalendarServer/trunk/twistedcaldav/test/test_index.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/test/test_index.py	2008-07-11 19:20:22 UTC (rev 2695)
+++ CalendarServer/trunk/twistedcaldav/test/test_index.py	2008-07-11 20:13:33 UTC (rev 2696)
@@ -15,13 +15,11 @@
 ##
 
 from twistedcaldav.index import Index
-from twistedcaldav import index
 
 import twistedcaldav.test.util
 from twistedcaldav.test.util import InMemoryMemcacheProtocol
 from twistedcaldav.index import ReservationError, MemcachedUIDReserver
 from twisted.web2.test.test_http import deferLater
-import time
 
 class SQLIndexTests (twistedcaldav.test.util.TestCase):
     """

Modified: CalendarServer/trunk/twistedcaldav/test/test_mkcalendar.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/test/test_mkcalendar.py	2008-07-11 19:20:22 UTC (rev 2695)
+++ CalendarServer/trunk/twistedcaldav/test/test_mkcalendar.py	2008-07-11 20:13:33 UTC (rev 2696)
@@ -13,7 +13,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 ##
-from twisted.internet.defer import inlineCallbacks, returnValue
+from twisted.internet.defer import inlineCallbacks
 from twistedcaldav import index
 
 import os

Modified: CalendarServer/trunk/twistedcaldav/test/test_notify.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/test/test_notify.py	2008-07-11 19:20:22 UTC (rev 2695)
+++ CalendarServer/trunk/twistedcaldav/test/test_notify.py	2008-07-11 20:13:33 UTC (rev 2696)
@@ -14,8 +14,6 @@
 # limitations under the License.
 ##
 
-from copy import deepcopy
-
 from twisted.trial.unittest import TestCase
 from twisted.internet.task import Clock
 from twisted.words.protocols.jabber.client import IQ

Modified: CalendarServer/trunk/twistedcaldav/test/util.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/test/util.py	2008-07-11 19:20:22 UTC (rev 2695)
+++ CalendarServer/trunk/twistedcaldav/test/util.py	2008-07-11 20:13:33 UTC (rev 2696)
@@ -16,7 +16,8 @@
 
 import os
 
-from twisted.internet.defer import succeed
+from twisted.python.failure import Failure
+from twisted.internet.defer import succeed, fail
 from twisted.web2.http import HTTPError, StatusResponse
 
 from twistedcaldav.config import config
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20080711/ce6cc41d/attachment-0001.html 


More information about the calendarserver-changes mailing list