[CalendarServer-changes] [4412] CalendarServer/trunk

source_changes at macosforge.org source_changes at macosforge.org
Thu Jul 2 11:45:47 PDT 2009


Revision: 4412
          http://trac.macosforge.org/projects/calendarserver/changeset/4412
Author:   wsanchez at apple.com
Date:     2009-07-02 11:45:47 -0700 (Thu, 02 Jul 2009)
Log Message:
-----------
pyflakes.

Modified Paths:
--------------
    CalendarServer/trunk/calendarserver/tools/util.py
    CalendarServer/trunk/calendarserver/webadmin/resource.py
    CalendarServer/trunk/pyflakes
    CalendarServer/trunk/twext/python/log.py
    CalendarServer/trunk/twistedcaldav/accesslog.py
    CalendarServer/trunk/twistedcaldav/config.py
    CalendarServer/trunk/twistedcaldav/directory/appleopendirectory.py
    CalendarServer/trunk/twistedcaldav/directory/test/test_proxyprincipalmembers.py
    CalendarServer/trunk/twistedcaldav/directory/test/test_sqldb.py
    CalendarServer/trunk/twistedcaldav/directory/xmlaccountsparser.py
    CalendarServer/trunk/twistedcaldav/mail.py
    CalendarServer/trunk/twistedcaldav/test/test_memcacheprops.py
    CalendarServer/trunk/twistedcaldav/util.py

Modified: CalendarServer/trunk/calendarserver/tools/util.py
===================================================================
--- CalendarServer/trunk/calendarserver/tools/util.py	2009-07-02 18:35:58 UTC (rev 4411)
+++ CalendarServer/trunk/calendarserver/tools/util.py	2009-07-02 18:45:47 UTC (rev 4412)
@@ -22,7 +22,6 @@
     "booleanArgument",
 ]
 
-import sys
 import os
 from time import sleep
 

Modified: CalendarServer/trunk/calendarserver/webadmin/resource.py
===================================================================
--- CalendarServer/trunk/calendarserver/webadmin/resource.py	2009-07-02 18:35:58 UTC (rev 4411)
+++ CalendarServer/trunk/calendarserver/webadmin/resource.py	2009-07-02 18:45:47 UTC (rev 4412)
@@ -24,8 +24,6 @@
 
 import cgi
 import operator
-import os
-import urllib
 import urlparse
 
 from calendarserver.tools.principals import principalForPrincipalID, proxySubprincipal, action_addProxyPrincipal, action_removeProxyPrincipal
@@ -38,7 +36,6 @@
 from twisted.web2.http_headers import MimeType
 from twisted.web2.stream import MemoryStream
 from twisted.web2.dav import davxml
-from twisted.web2.dav.resource import TwistedACLInheritable
 
 
 class WebAdminResource (ReadOnlyResourceMixIn, DAVFile):

Modified: CalendarServer/trunk/pyflakes
===================================================================
--- CalendarServer/trunk/pyflakes	2009-07-02 18:35:58 UTC (rev 4411)
+++ CalendarServer/trunk/pyflakes	2009-07-02 18:45:47 UTC (rev 4412)
@@ -14,6 +14,7 @@
 
 cd "${wd}" && "${flakes}/bin/pyflakes" "$@" | sed                     \
   -e "/undefined name '_'/d"                                          \
+  -e "/undefined name 'CalDAVFile'/d"                                 \
   -e "/redefinition of unused/d"                                      \
   -e "/'from .* import \\*' used; unable to detect undefined names/d" \
   -e "/redefinition of function/d"                                    \

Modified: CalendarServer/trunk/twext/python/log.py
===================================================================
--- CalendarServer/trunk/twext/python/log.py	2009-07-02 18:35:58 UTC (rev 4411)
+++ CalendarServer/trunk/twext/python/log.py	2009-07-02 18:45:47 UTC (rev 4412)
@@ -20,7 +20,7 @@
 
 from sys import stdout, stderr
 
-from twisted.python.log import addObserver
+from twisted.python.log import addObserver, removeObserver
 
 class StandardIOObserver (object):
     """

Modified: CalendarServer/trunk/twistedcaldav/accesslog.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/accesslog.py	2009-07-02 18:35:58 UTC (rev 4411)
+++ CalendarServer/trunk/twistedcaldav/accesslog.py	2009-07-02 18:45:47 UTC (rev 4412)
@@ -26,7 +26,6 @@
 ]
 
 import datetime
-import logging
 import os
 import time
 

Modified: CalendarServer/trunk/twistedcaldav/config.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/config.py	2009-07-02 18:35:58 UTC (rev 4411)
+++ CalendarServer/trunk/twistedcaldav/config.py	2009-07-02 18:45:47 UTC (rev 4412)
@@ -23,7 +23,6 @@
     "config",
 ]
 
-import os
 import copy
 import re
 

Modified: CalendarServer/trunk/twistedcaldav/directory/appleopendirectory.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/directory/appleopendirectory.py	2009-07-02 18:35:58 UTC (rev 4411)
+++ CalendarServer/trunk/twistedcaldav/directory/appleopendirectory.py	2009-07-02 18:45:47 UTC (rev 4412)
@@ -38,7 +38,7 @@
 from twisted.internet.threads import deferToThread
 from twisted.cred.credentials import UsernamePassword
 from twisted.web2.auth.digest import DigestedCredentials
-from twistedcaldav.config import config, ConfigurationError
+from twistedcaldav.config import config
 
 from twistedcaldav.directory.cachingdirectory import CachingDirectoryService,\
     CachingDirectoryRecord

Modified: CalendarServer/trunk/twistedcaldav/directory/test/test_proxyprincipalmembers.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/directory/test/test_proxyprincipalmembers.py	2009-07-02 18:35:58 UTC (rev 4411)
+++ CalendarServer/trunk/twistedcaldav/directory/test/test_proxyprincipalmembers.py	2009-07-02 18:45:47 UTC (rev 4412)
@@ -23,7 +23,6 @@
 from twistedcaldav.directory.principal import DirectoryPrincipalResource
 from twistedcaldav.directory.xmlaccountsparser import XMLAccountsParser
 from twistedcaldav.directory.xmlfile import XMLDirectoryService
-from twistedcaldav.directory.calendaruserproxy import CalendarUserProxyDatabase
 
 import twistedcaldav.test.util
 from twistedcaldav.config import config

Modified: CalendarServer/trunk/twistedcaldav/directory/test/test_sqldb.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/directory/test/test_sqldb.py	2009-07-02 18:35:58 UTC (rev 4411)
+++ CalendarServer/trunk/twistedcaldav/directory/test/test_sqldb.py	2009-07-02 18:45:47 UTC (rev 4412)
@@ -18,9 +18,9 @@
 
 from twisted.python.filepath import FilePath
 
-import twistedcaldav.directory.test.util
-import twistedcaldav.directory.test.test_xmlfile
-from twistedcaldav.directory.sqldb import SQLDirectoryService
+#import twistedcaldav.directory.test.util
+#import twistedcaldav.directory.test.test_xmlfile
+#from twistedcaldav.directory.sqldb import SQLDirectoryService
 
 xmlFile = FilePath(os.path.join(os.path.dirname(__file__), "accounts.xml"))
 

Modified: CalendarServer/trunk/twistedcaldav/directory/xmlaccountsparser.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/directory/xmlaccountsparser.py	2009-07-02 18:35:58 UTC (rev 4411)
+++ CalendarServer/trunk/twistedcaldav/directory/xmlaccountsparser.py	2009-07-02 18:45:47 UTC (rev 4412)
@@ -23,7 +23,6 @@
     "XMLAccountsParser",
 ]
 
-from uuid import UUID
 import xml.dom.minidom
 
 from twisted.python.filepath import FilePath

Modified: CalendarServer/trunk/twistedcaldav/mail.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/mail.py	2009-07-02 18:35:58 UTC (rev 4411)
+++ CalendarServer/trunk/twistedcaldav/mail.py	2009-07-02 18:45:47 UTC (rev 4412)
@@ -34,11 +34,10 @@
 from twisted.mail import pop3client, imap4
 from twisted.mail.smtp import messageid, rfc822date, ESMTPSenderFactory
 from twisted.plugin import IPlugin
-from twisted.python import failure
 from twisted.python.reflect import namedClass
 from twisted.python.usage import Options, UsageError
 from twisted.web import client
-from twisted.web2 import resource, server, responsecode
+from twisted.web2 import server, responsecode
 from twisted.web2.channel.http import HTTPFactory
 from twisted.web2.dav import auth
 from twisted.web2.dav import davxml

Modified: CalendarServer/trunk/twistedcaldav/test/test_memcacheprops.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/test/test_memcacheprops.py	2009-07-02 18:35:58 UTC (rev 4411)
+++ CalendarServer/trunk/twistedcaldav/test/test_memcacheprops.py	2009-07-02 18:45:47 UTC (rev 4412)
@@ -28,7 +28,6 @@
 
 from twisted.web2.http import HTTPError
 
-from twistedcaldav.config import config
 from twistedcaldav.memcacheprops import MemcachePropertyCollection
 from twistedcaldav.test.util import InMemoryPropertyStore
 from twistedcaldav.test.util import TestCase

Modified: CalendarServer/trunk/twistedcaldav/util.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/util.py	2009-07-02 18:35:58 UTC (rev 4411)
+++ CalendarServer/trunk/twistedcaldav/util.py	2009-07-02 18:45:47 UTC (rev 4412)
@@ -21,7 +21,7 @@
 
 from twisted.internet import ssl, reactor
 from twisted.web import client
-from twistedcaldav.log import Logger, LoggingMixIn
+from twistedcaldav.log import LoggingMixIn
 from twisted.python import failure
 from hashlib import md5, sha1
 import base64
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20090702/99bc2bc5/attachment.html>


More information about the calendarserver-changes mailing list