[Zope3-checkins] SVN: Zope3/branches/ZopeX3-3.0/src/zope/ Backported

Stephan Richter srichter at cosmos.phy.tufts.edu
Thu Aug 12 15:56:32 EDT 2004


Log message for revision 27081:
  Backported
  
  r26559 | srichter | 2004-07-15 17:22:32 -0400 (Thu, 15 Jul 2004) | 2 lines
  r26560 | srichter | 2004-07-15 17:38:42 -0400 (Thu, 15 Jul 2004) | 2 lines
  
  


Changed:
  U   Zope3/branches/ZopeX3-3.0/src/zope/app/annotation/tests/test_attributeannotations.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/app/event/tests/test_objectevent.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/app/introspector/tests/test_introspector.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/app/locales/extract.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/app/locales/pygettext.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/app/principalannotation/tests.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/app/publication/interfaces.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/app/publication/tests/test_xmlrpcpublication.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/app/publication/tests/test_zopepublication.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/app/publication/xmlrpc.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/app/publisher/browser/tests/test_fileresource.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/app/publisher/browser/tests/test_resources.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/app/publisher/tests/test_fieldconverters.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/app/registration/browser/__init__.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/app/registration/browser/tests/test_registrationview.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/app/registration/tests/iregistry.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/app/registration/tests/test_registrations.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/app/registration/tests/test_registrationstack.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/app/registration/tests/test_registrationstatusproperty.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/app/traversing/tests/test_presentation.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/component/presentation.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/component/tests/placelesssetup.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/component/tests/request.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/component/tests/test_api.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/component/tests/test_presentation.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/component/tests/test_utilityservice.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/configuration/config.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/configuration/fields.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/configuration/tests/directives.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/configuration/tests/samplepackage/foo.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/configuration/tests/test_simple.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/configuration/tests/test_xmlconfig.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/configuration/xmlconfig.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/dependencytool/finddeps.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/dependencytool/importfinder.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/dependencytool/tests/pkg/module.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/documenttemplate/tests/dtmltestbase.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/documenttemplate/tests/testdt_var.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/documenttemplate/tests/testdt_with.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/exceptions/exceptionformatter.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/exceptions/tests/test_exceptionformatter.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/i18n/gettextmessagecatalog.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/i18n/locales/xmlfactory.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/i18n/negotiator.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/i18n/simpletranslationdomain.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/i18n/tests/test_formats.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/i18n/tests/test_imessagecatalog.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/i18n/tests/test_itranslationdomain.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/i18n/tests/test_negotiator.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/i18n/tests/testi18nawareobject.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/i18nmessageid/messageid.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/importtool/app.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/importtool/hook.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/importtool/reporter.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/interface/common/tests/basemapping.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/interface/declarations.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/interface/document.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/interface/interface.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/interface/tests/odd.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/interface/tests/test_advice.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/interface/tests/test_declarations.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/interface/tests/test_document.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/interface/tests/test_odd_declarations.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/interface/tests/test_verify.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/interface/tests/unitfixtures.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/pagetemplate/tests/batch.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/pagetemplate/tests/test_htmltests.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/pagetemplate/tests/testpackage/content.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/pagetemplate/tests/util.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/proxy/tests/test_proxy.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/publisher/browser.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/publisher/http.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/basetestiapplicationrequest.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/basetestipublicationrequest.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/basetestipublisherrequest.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/publication.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/test_browserrequest.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/test_http.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/test_ipublication.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/test_mapply.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/test_publisher.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/test_requestdataproperty.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/test_xmlrpcmethodpublisher.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/test_xmlrpcrequest.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/views.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/xmlrpcviews.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/schema/tests/states.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/schema/tests/tabcomplete.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/schema/tests/test_accessors.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/schema/tests/test_listfield.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/schema/tests/test_setfield.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/schema/tests/test_tuplefield.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/schema/tests/test_vocabulary.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/security/examples/sandbox.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/security/examples/sandbox_security.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/security/tests/test_checker.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/security/tests/test_management.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/security/tests/test_proxy.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/security/tests/test_simpleinteraction.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/security/tests/test_standard_checkers.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/server/adjustments.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/server/buffers.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/server/fixedstreamreceiver.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/server/ftp/logger.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/server/ftp/publisher.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/server/ftp/server.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/server/ftp/tests/fstests.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/server/ftp/tests/test_publisher.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/server/http/chunking.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/server/http/commonaccesslogger.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/server/http/httprequestparser.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/server/http/httptask.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/server/http/tests/test_httpserver.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/server/http/tests/test_publisherserver.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/server/linereceiver/linecommandparser.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/server/linereceiver/linetask.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/server/logger/filelogger.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/server/logger/m_syslog.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/server/logger/pythonlogger.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/server/logger/resolvinglogger.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/server/logger/taillogger.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/server/logger/unresolvinglogger.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/server/taskthreads.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/tal/dummyengine.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/tal/ndiff.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/tal/taldefs.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/tal/talgenerator.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/tal/talgettext.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/tal/talinterpreter.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/tal/tests/test_xmlparser.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/tal/translationcontext.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/tal/xmlparser.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/tales/pythonexpr.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/tales/tales.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/tales/tests/simpleexpr.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/tales/tests/test_expressions.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/tales/tests/test_tales.py


-=-
Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/annotation/tests/test_attributeannotations.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/annotation/tests/test_attributeannotations.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/annotation/tests/test_attributeannotations.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -22,7 +22,7 @@
 from zope.app.annotation.interfaces import IAttributeAnnotatable
 from zope.interface import implements
 
-class Dummy:
+class Dummy(object):
     implements(IAttributeAnnotatable)
 
 class AttributeAnnotationsTest(IAnnotationsTest, CleanUp):

Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/event/tests/test_objectevent.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/event/tests/test_objectevent.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/event/tests/test_objectevent.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -11,12 +11,10 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""
+"""Object Event Tests
 
-Revision information:
 $Id$
 """
-
 import unittest
 import doctest
 

Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/introspector/tests/test_introspector.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/introspector/tests/test_introspector.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/introspector/tests/test_introspector.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -11,12 +11,10 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""
+"""Introspector Tests.
 
-Revision information:
 $Id$
 """
-
 from unittest import TestCase, TestSuite, main, makeSuite
 from zope.app.introspector import Introspector
 from zope.app.introspector.interfaces import IIntrospector

Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/locales/extract.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/locales/extract.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/locales/extract.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -326,7 +326,7 @@
     from zope.tal.htmltalparser import HTMLTALParser
     engine = POEngine()
 
-    class Devnull:
+    class Devnull(object):
         def write(self, s):
             pass
 

Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/locales/pygettext.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/locales/pygettext.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/locales/pygettext.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -159,7 +159,7 @@
 EMPTYSTRING = ''
 
 
-
+
 # The normal pot-file header. msgmerge and Emacs's po-mode work better if it's
 # there.
 pot_header = _('''\
@@ -181,7 +181,7 @@
 
 ''')
 
-
+
 def usage(code, msg=''):
     print >> sys.stderr, _(__doc__) % globals()
     if msg:
@@ -189,7 +189,6 @@
     sys.exit(code)
 
 
-
 escapes = []
 
 def make_escapes(pass_iso8859):
@@ -242,8 +241,7 @@
     return s
 
 
-
-class TokenEater:
+class TokenEater(object):
     def __init__(self, options):
         self.__options = options
         self.__messages = {}
@@ -384,7 +382,7 @@
                 print >> fp, 'msgstr ""\n'
 
 
-
+
 def main():
     global default_keywords
     try:
@@ -401,7 +399,7 @@
         usage(1, msg)
 
     # for holding option values
-    class Options:
+    class Options(object):
         # constants
         GNU = 1
         SOLARIS = 2

Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/principalannotation/tests.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/principalannotation/tests.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/principalannotation/tests.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -27,7 +27,7 @@
 from zope.interface import implements
 from zope.app import zapi
 
-class Principal:
+class Principal(object):
 
     implements(IPrincipal)
 

Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/publication/interfaces.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/publication/interfaces.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/publication/interfaces.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -11,7 +11,7 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""
+"""Publication Interfaces
 
 $Id$
 """
@@ -31,7 +31,7 @@
     """An event which gets sent on publication traverse"""
 
 
-class BeforeTraverseEvent:
+class BeforeTraverseEvent(object):
     """An event which gets sent on publication traverse"""
     implements(IBeforeTraverseEvent)
     def __init__(self, ob, request):
@@ -43,7 +43,7 @@
     """An event which gets sent when the publication is ended"""
 
 
-class EndRequestEvent:
+class EndRequestEvent(object):
     """An event which gets sent when the publication is ended"""
     implements(IEndRequestEvent)
     def __init__(self, ob, request):

Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/publication/tests/test_xmlrpcpublication.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/publication/tests/test_xmlrpcpublication.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/publication/tests/test_xmlrpcpublication.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -32,7 +32,7 @@
 from zope.publisher.xmlrpc import TestRequest
 
 
-class SimpleObject:
+class SimpleObject(object):
     def __init__(self, v):
         self.v = v
 
@@ -48,7 +48,7 @@
 
     def testTraverseName(self):
         pub = self.klass(self.db)
-        class C:
+        class C(object):
             x = SimpleObject(1)
         ob = C()
         r = self._createRequest('/x', pub)
@@ -63,13 +63,13 @@
         class I(Interface):
             pass
 
-        class C:
+        class C(object):
             implements(I)
 
             def foo(self):
                 return 'bar'
 
-        class V:
+        class V(object):
             def __init__(self, context, request):
                 pass
             implements(IXMLRPCPresentation)
@@ -89,12 +89,12 @@
         class I(Interface):
             pass
 
-        class C:
+        class C(object):
             implements(I)
 
         ob = C()
 
-        class V:
+        class V(object):
             def __init__(self, context, request):
                 pass
             implements(IXMLRPCPresentation)
@@ -115,12 +115,12 @@
         class I(Interface):
             pass
 
-        class C:
+        class C(object):
             implements(I)
 
         ob = C()
 
-        class V:
+        class V(object):
             implements(IXMLRPCPresentation)
 
             def __init__(self, context, request):
@@ -144,7 +144,7 @@
 
     def testTraverseNameServices(self):
         pub = self.klass(self.db)
-        class C:
+        class C(object):
             def getSiteManager(self):
                 return SimpleObject(1)
         ob = C()

Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/publication/tests/test_zopepublication.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/publication/tests/test_zopepublication.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/publication/tests/test_zopepublication.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -51,7 +51,7 @@
 from zope.app.folder import Folder, rootFolder
 from zope.app.location import Location
 
-class Principal:
+class Principal(object):
     implements(IPrincipal)
     def __init__(self, id):
         self.id = id
@@ -61,7 +61,7 @@
 class UnauthenticatedPrincipal(Principal):
     implements(IUnauthenticatedPrincipal)
 
-class AuthService1:
+class AuthService1(object):
 
     def authenticate(self, request):
         return None
@@ -83,7 +83,7 @@
     def getPrincipal(self, id):
         return Principal(id)
 
-class ErrorLoggingService:
+class ErrorLoggingService(object):
     implements(IErrorReportingService)
 
     def __init__(self):
@@ -92,7 +92,7 @@
     def raising(self, info, request=None):
         self.exceptions.append([info, request])
 
-class ServiceManager:
+class ServiceManager(object):
     implements(IServiceService) # a dirty lie
 
     def __init__(self, auth):
@@ -236,7 +236,7 @@
 
     def testExceptionSideEffects(self):
         from zope.publisher.interfaces import IExceptionSideEffects
-        class SideEffects:
+        class SideEffects(object):
             implements(IExceptionSideEffects)
             def __init__(self, exception):
                 self.exception = exception

Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/publication/xmlrpc.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/publication/xmlrpc.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/publication/xmlrpc.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -77,7 +77,7 @@
         return super(XMLRPCPublication, self).traverseName(request, ob, name)
 
 # For now, have a factory that returns a singleton
-class XMLRPCPublicationFactory:
+class XMLRPCPublicationFactory(object):
 
     def __init__(self, db):
         self.__pub = XMLRPCPublication(db)

Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/publisher/browser/tests/test_fileresource.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/publisher/browser/tests/test_fileresource.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/publisher/browser/tests/test_fileresource.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -11,26 +11,21 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""
+"""File-based browser resource tests.
 
-Revision information:
 $Id$
 """
-
 import os
-
 from unittest import TestCase, main, makeSuite
 
+from zope.exceptions import NotFoundError
+from zope.i18n.interfaces import IUserPreferredCharsets
+from zope.proxy import removeAllProxies
 from zope.security.checker import NamesChecker
 
-from zope.exceptions import NotFoundError
-
 from zope.app.tests.placelesssetup import PlacelessSetup
 from zope.app.tests import ztapi
-from zope.proxy import removeAllProxies
 
-from zope.i18n.interfaces import IUserPreferredCharsets
-
 from zope.publisher.http import IHTTPRequest
 from zope.publisher.http import HTTPCharsets
 from zope.publisher.browser import TestRequest

Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/publisher/browser/tests/test_resources.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/publisher/browser/tests/test_resources.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/publisher/browser/tests/test_resources.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -11,12 +11,10 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""
+"""Test Browser Resources
 
-Revision information:
 $Id$
 """
-
 from unittest import TestCase, main, makeSuite
 from zope.app.tests import ztapi
 from zope.app.tests.placelesssetup import PlacelessSetup

Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/publisher/tests/test_fieldconverters.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/publisher/tests/test_fieldconverters.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/publisher/tests/test_fieldconverters.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -11,12 +11,10 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""
+"""Test of field converters.
 
-Revision information:
 $Id$
 """
-
 from unittest import TestCase, TestSuite, main, makeSuite
 from datetime import datetime
 

Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/registration/browser/__init__.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/registration/browser/__init__.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/registration/browser/__init__.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -67,7 +67,7 @@
         return self.registrations[0]
 
 
-class Registered:
+class Registered(object):
 
     def __init__(self, context, request):
         self.context = context

Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/registration/browser/tests/test_registrationview.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/registration/browser/tests/test_registrationview.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/registration/browser/tests/test_registrationview.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -138,11 +138,10 @@
     >>> view.update()
     >>> request.response.getStatus()
     302
-
     """
 
 
-class FakeRegisterable:
+class FakeRegisterable(object):
     implements(IRegistered)
 
     def __init__(self, usages):
@@ -151,7 +150,7 @@
     def registrations(self):
         return self._usages
 
-class FakeRegistration:
+class FakeRegistration(object):
 
     def __init__(self, status):
         self.status = status

Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/registration/tests/iregistry.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/registration/tests/iregistry.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/registration/tests/iregistry.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -19,7 +19,7 @@
 from zope.interface.verify import verifyObject
 from zope.app.location import inside
 
-class TestingIRegistry:
+class TestingIRegistry(object):
     """Base class for testing implementors of IRegistry
 
     Subclasses must implement:

Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/registration/tests/test_registrations.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/registration/tests/test_registrations.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/registration/tests/test_registrations.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -167,7 +167,7 @@
         self.assertEquals(result, component)
         self.failUnless(type(result) is Proxy)
 
-class TestComponentRegistrationEvents:
+class TestComponentRegistrationEvents(object):
     def test_addNotify(self):
         """
         First we create a dummy registration
@@ -210,7 +210,7 @@
 
         """
 
-class TestRegisterableEvents:
+class TestRegisterableEvents(object):
     """Tests handling of registered component rename.
 
     >>> sm = PlacefulSetup().setUp(site=True)
@@ -264,7 +264,7 @@
     >>> PlacefulSetup().tearDown()
     """
 
-class TestRegisterableCopier:
+class TestRegisterableCopier(object):
     """Tests the copier for registerable components.
 
     >>> sm = PlacefulSetup().setUp(site=True)

Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/registration/tests/test_registrationstack.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/registration/tests/test_registrationstack.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/registration/tests/test_registrationstack.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -20,7 +20,7 @@
 from zope.app.registration.registration import RegistrationStack
 from zope.app.traversing.api import traverse
 
-class Registration:
+class Registration(object):
 
     active = 0
     registry = None

Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/registration/tests/test_registrationstatusproperty.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/registration/tests/test_registrationstatusproperty.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/registration/tests/test_registrationstatusproperty.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -40,7 +40,7 @@
     serviceType = "Utilities"
 
 
-class TestingServiceManager:
+class TestingServiceManager(object):
 
     implements(IServiceService) # I lied
 

Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/traversing/tests/test_presentation.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/traversing/tests/test_presentation.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/traversing/tests/test_presentation.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -11,12 +11,10 @@
 # FOR A PARTICULAR PURPOSE
 #
 ##############################################################################
-"""
+"""Presentation Traverser Tests
 
-Revision information:
 $Id$
 """
-
 from unittest import TestCase, main, makeSuite
 from zope.app.tests import ztapi
 from zope.app.tests.placelesssetup import PlacelessSetup

Modified: Zope3/branches/ZopeX3-3.0/src/zope/component/presentation.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/component/presentation.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/component/presentation.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -97,7 +97,7 @@
        >>> class IRequest(zope.interface.Interface):
        ...     "Demonstration request type"
 
-       >>> class Request:
+       >>> class Request(object):
        ...     zope.interface.implements(IRequest)
        ...     def getPresentationSkin(self):
        ...         return getattr(self, 'skin', None)
@@ -108,7 +108,7 @@
        With this in place, we can start registering resources. A resource
        is just a request adapter.
 
-       >>> class MyResource:
+       >>> class MyResource(object):
        ...    def __init__(self, request):
        ...        self.request = request
 
@@ -145,7 +145,7 @@
        >>> class IContact(zope.interface.Interface):
        ...     "Demonstration content type"
 
-       >>> class MyView:
+       >>> class MyView(object):
        ...     def __init__(self, context, request):
        ...         self.context, self.request = context, request
 
@@ -155,7 +155,7 @@
        When defining views, we provide one or more (typically 1) context
        interfaces, corresponding to the contexts of the view.
 
-       >>> class Contact:
+       >>> class Contact(object):
        ...     zope.interface.implements(IContact)
 
        >>> c = Contact()
@@ -177,7 +177,7 @@
        >>> class ITraverse(zope.interface.Interface):
        ...     "Sample traversal interface (imagine interesting methods :)"
 
-       >>> class Traverser:
+       >>> class Traverser(object):
        ...     zope.interface.implements(ITraverse)
        ...     def __init__(self, context, request):
        ...         self.context, self.request = context, request

Modified: Zope3/branches/ZopeX3-3.0/src/zope/component/tests/placelesssetup.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/component/tests/placelesssetup.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/component/tests/placelesssetup.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -11,18 +11,15 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""
-Revision information:
+"""Placeless Test Setup
 
 $Id$
 """
-
-# A mix-in class inheriting from CleanUp that also connects the CA services
-
 from zope.testing.cleanup import CleanUp
 from zope.component import getGlobalServices
 from zope.component.servicenames import Adapters, Utilities, Presentation
 
+# A mix-in class inheriting from CleanUp that also connects the CA services
 class PlacelessSetup(CleanUp):
 
     def setUp(self):

Modified: Zope3/branches/ZopeX3-3.0/src/zope/component/tests/request.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/component/tests/request.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/component/tests/request.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -11,14 +11,13 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""
+"""Request for tests
 
 $Id$
 """
-
 import zope.interface
 
-class Request:
+class Request(object):
 
     def __init__(self, type, skin=''):
         self._skin = skin

Modified: Zope3/branches/ZopeX3-3.0/src/zope/component/tests/test_api.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/component/tests/test_api.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/component/tests/test_api.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -39,17 +39,17 @@
 class I3(Interface):
     pass
 
-class Comp:
+class Comp(object):
     implements(I2)
     def __init__(self, context, request=None): self.context = context
 
-class Comp2:
+class Comp2(object):
     implements(I3)
     def __init__(self, context, request=None): self.context = context
 
 comp = Comp(1)
 
-class Ob:
+class Ob(object):
     implements(I1)
     def __conform__(self, i):
         if i is IServiceService:
@@ -64,7 +64,7 @@
         else:
             return Ob.__conform__(self, i)
 
-class StubServiceService:
+class StubServiceService(object):
     implements(IServiceService)  # This is a lie.
 
     def __init__(self):
@@ -80,7 +80,7 @@
             raise ComponentLookupError, name
 
 
-class ConformsToIServiceService:
+class ConformsToIServiceService(object):
 
     def __init__(self, serviceservice):
         self.serviceservice = serviceservice
@@ -156,7 +156,7 @@
             pass
         class I2(Interface):
             pass
-        class C:
+        class C(object):
             implements(I1)
             def __conform__(self, iface, default=None):
                 if iface == I2:
@@ -168,7 +168,7 @@
         context = ConformsToIServiceService(servicemanager)
         class I3(Interface):
             pass
-        class StubAdapterService:
+        class StubAdapterService(object):
             def queryAdapter(self, ob, iface, name, default=None):
                 if iface is I3:
                     return 43
@@ -238,12 +238,12 @@
 
     def testQueryMultiAdapter(self):
         # Adapting a combination of 2 objects to an interface
-        class DoubleAdapter:
+        class DoubleAdapter(object):
             implements(I3)
             def __init__(self, first, second):
                 self.first = first
                 self.second = second
-        class Ob2:
+        class Ob2(object):
             implements(I2)
         ob2 = Ob2()
         context = None
@@ -372,7 +372,7 @@
         from zope.component import queryMultiView, getService
         from zope.component.exceptions import ComponentLookupError
 
-        class Ob2:
+        class Ob2(object):
             implements(I2)
 
         ob2 = Ob2()
@@ -382,7 +382,7 @@
 
         request = Request(IRequest)
 
-        class MV:
+        class MV(object):
             implements(I3)
             def __init__(self, context, other, request):
                self.context, self.other, self.request = context, other, request

Modified: Zope3/branches/ZopeX3-3.0/src/zope/component/tests/test_presentation.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/component/tests/test_presentation.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/component/tests/test_presentation.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -11,7 +11,7 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""XXX short summary goes here.
+"""Presentation Serivce tests
 
 $Id$
 """
@@ -23,7 +23,7 @@
 class IRequest(zope.interface.Interface):
     "Demonstration request type"
 
-class Request:
+class Request(object):
     zope.interface.implements(IRequest)
     def getPresentationSkin(self):
         return getattr(self, 'skin', None)
@@ -31,10 +31,10 @@
 class IContact(zope.interface.Interface):
     "Demonstration content type"
 
-class Contact:
+class Contact(object):
     zope.interface.implements(IContact)
 
-class MyView:
+class MyView(object):
     def __init__(self, context, request):
         self.context, self.request = context, request
 
@@ -61,7 +61,7 @@
 class ICompany(zope.interface.Interface):
     "Demonstration content type"
 
-class Company:
+class Company(object):
     zope.interface.implements(ICompany)
 
 class ContactInCompanyView:
@@ -71,10 +71,10 @@
 class IFamily(zope.interface.Interface):
     "Demonstration content type"
 
-class Family:
+class Family(object):
     zope.interface.implements(IFamily)
 
-class ContactInFamilyView:
+class ContactInFamilyView(object):
     def __init__(self, contact, family, request):
         self.contact, self.family, self.request = contact, family, request
 
@@ -223,7 +223,7 @@
 
     >>> request = Request()
 
-    >>> class MyResource:
+    >>> class MyResource(object):
     ...    def __init__(self, request):
     ...        self.request = request
     >>> s.provideAdapter(IRequest, MyResource, name='foo', layer='custom')

Modified: Zope3/branches/ZopeX3-3.0/src/zope/component/tests/test_utilityservice.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/component/tests/test_utilityservice.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/component/tests/test_utilityservice.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -31,18 +31,18 @@
 class IDummerUtility(IDummyUtility):
     pass
 
-class DummyUtility:
+class DummyUtility(object):
     __name__ = 'DummyUtility'
     implements(IDummyUtility)
 
-class DummyUtility2:
+class DummyUtility2(object):
     implements(IDummyUtility)
     __name__ = 'DummyUtility2'
 
     def __len__(self):
         return 0
 
-class DummerUtility:
+class DummerUtility(object):
     __name__ = 'DummerUtility'
     implements(IDummerUtility)
 

Modified: Zope3/branches/ZopeX3-3.0/src/zope/configuration/config.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/configuration/config.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/configuration/config.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -848,7 +848,7 @@
     We need a handler for the complex directive. This is a class
     with a method for each subdirective:
 
-    >>> class Handler:
+    >>> class Handler(object):
     ...   def __init__(self, context, x, y):
     ...      self.context, self.x, self.y = context, x, y
     ...      context.action('init', f)

Modified: Zope3/branches/ZopeX3-3.0/src/zope/configuration/fields.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/configuration/fields.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/configuration/fields.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -32,7 +32,7 @@
 
     Let's look at an example:
 
-    >>> class FauxContext:
+    >>> class FauxContext(object):
     ...     pass
     >>> context = FauxContext()
     >>> field = PythonIdentifier().bind(context)
@@ -216,7 +216,7 @@
 
     We'll be careful to do this in an os-independent fashion.
 
-    >>> class FauxContext:
+    >>> class FauxContext(object):
     ...    def path(self, p):
     ...       return os.path.join(os.sep, 'faux', 'context', p)
     
@@ -288,11 +288,11 @@
     When a string is converted to a message ID, it is also
     recorded in the context.
 
-    >>> class Info:
+    >>> class Info(object):
     ...     file = 'file location'
     ...     line = 8
     
-    >>> class FauxContext:
+    >>> class FauxContext(object):
     ...     i18n_strings = {}
     ...     info = Info()
 

Modified: Zope3/branches/ZopeX3-3.0/src/zope/configuration/tests/directives.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/configuration/tests/directives.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/configuration/tests/directives.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -15,7 +15,6 @@
 
 $Id$
 """
-
 from zope.interface import Interface, implements
 from zope.schema import Text, BytesLine
 from zope.configuration.config import GroupingContextDecorator
@@ -23,7 +22,7 @@
 from zope.configuration.fields import GlobalObject
 
 
-class F:
+class F(object):
     def __repr__(self):
         return 'f'
     def __call__(self, *a, **k):
@@ -63,7 +62,7 @@
 def factory(context, factory):
     context.action(('factory', 1,2), factory)
 
-class Complex:
+class Complex(object):
 
     def __init__(self, context, a, c, b=u"xxx"):
         self.a, self.b, self.c = a, b, c

Modified: Zope3/branches/ZopeX3-3.0/src/zope/configuration/tests/samplepackage/foo.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/configuration/tests/samplepackage/foo.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/configuration/tests/samplepackage/foo.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -24,7 +24,7 @@
     x = schema.BytesLine()
     y = schema.Int()
 
-class stuff:
+class stuff(object):
     def __init__(self, args, info, basepath, package, includepath):
         (self.args, self.info, self.basepath, self.package, self.includepath
          ) = args, info, basepath, package, includepath

Modified: Zope3/branches/ZopeX3-3.0/src/zope/configuration/tests/test_simple.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/configuration/tests/test_simple.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/configuration/tests/test_simple.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -188,7 +188,7 @@
         required = False
         )
 
-class FileInfo:
+class FileInfo(object):
 
     def __init__(self, path, title, description, info):
         (self.path, self.title, self.description, self.info

Modified: Zope3/branches/ZopeX3-3.0/src/zope/configuration/tests/test_xmlconfig.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/configuration/tests/test_xmlconfig.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/configuration/tests/test_xmlconfig.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -15,7 +15,6 @@
 
 $Id$
 """
-
 import unittest
 import os
 from zope.testing.doctestunit import DocTestSuite
@@ -24,7 +23,7 @@
 from pprint import PrettyPrinter, pprint
 
 
-class FauxLocator:
+class FauxLocator(object):
   def __init__(self, file, line, column):
     self.file, self.line, self.column = file, line, column
   def getSystemId(self):
@@ -34,7 +33,7 @@
   def getColumnNumber(self):
     return self.column
 
-class FauxContext:
+class FauxContext(object):
   
   def setInfo(self, info):
     self.info = info

Modified: Zope3/branches/ZopeX3-3.0/src/zope/configuration/xmlconfig.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/configuration/xmlconfig.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/configuration/xmlconfig.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -80,7 +80,7 @@
         else:
             return str(v)
 
-class ParserInfo:
+class ParserInfo(object):
     """Information about a directive based on parser data
 
     This includes the directive location, as well as text data
@@ -479,7 +479,7 @@
         addCleanUp(_clearContext)
     return _context
 
-class XMLConfig:
+class XMLConfig(object):
     """Provide high-level handling of configuration files.
 
     See examples in tests/text_xmlconfig.py

Modified: Zope3/branches/ZopeX3-3.0/src/zope/dependencytool/finddeps.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/dependencytool/finddeps.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/dependencytool/finddeps.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -274,7 +274,7 @@
             print
 
 
-class DependencyOptions:
+class DependencyOptions(object):
 
     all = False
     long = False

Modified: Zope3/branches/ZopeX3-3.0/src/zope/dependencytool/importfinder.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/dependencytool/importfinder.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/dependencytool/importfinder.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -15,7 +15,6 @@
 
 $Id$
 """
-
 import sys
 import token
 import tokenize
@@ -39,7 +38,7 @@
 dotjoin = ".".join
 
 
-class ImportFinder:
+class ImportFinder(object):
 
     def __init__(self, packages=False):
         """Initialize the import finder.

Modified: Zope3/branches/ZopeX3-3.0/src/zope/dependencytool/tests/pkg/module.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/dependencytool/tests/pkg/module.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/dependencytool/tests/pkg/module.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -16,5 +16,5 @@
 $Id$
 """
 
-class SomeClass:
+class SomeClass(object):
     """Simple class with little to offer."""

Modified: Zope3/branches/ZopeX3-3.0/src/zope/documenttemplate/tests/dtmltestbase.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/documenttemplate/tests/dtmltestbase.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/documenttemplate/tests/dtmltestbase.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -32,7 +32,7 @@
     return res
 
 
-class ObjectStub:
+class ObjectStub(object):
     def __init__(self, **kw):
         for k, v in kw.items():
             self.__dict__[k]=v

Modified: Zope3/branches/ZopeX3-3.0/src/zope/documenttemplate/tests/testdt_var.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/documenttemplate/tests/testdt_var.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/documenttemplate/tests/testdt_var.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -93,7 +93,7 @@
 
     def testRender(self):
         # Test automatic rendering of callable objects
-        class C:
+        class C(object):
             x = 1
             def y(self): return self.x * 2
             h = self.doc_class(u"The h method, <dtml-var x> <dtml-var y>")

Modified: Zope3/branches/ZopeX3-3.0/src/zope/documenttemplate/tests/testdt_with.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/documenttemplate/tests/testdt_with.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/documenttemplate/tests/testdt_with.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -14,14 +14,13 @@
 
 $Id$
 """
-
 import unittest
 from zope.documenttemplate.tests.dtmltestbase import DTMLTestBase
 
 class TestDT_With(DTMLTestBase):
 
     def testBasic(self):
-        class person:
+        class person(object):
             name=u'Jim'
             height_inches=73
 

Modified: Zope3/branches/ZopeX3-3.0/src/zope/exceptions/exceptionformatter.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/exceptions/exceptionformatter.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/exceptions/exceptionformatter.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -22,7 +22,7 @@
 
 DEBUG_EXCEPTION_FORMATTER = 1
 
-class TextExceptionFormatter:
+class TextExceptionFormatter(object):
 
     line_sep = '\n'
     show_revisions = 0

Modified: Zope3/branches/ZopeX3-3.0/src/zope/exceptions/tests/test_exceptionformatter.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/exceptions/tests/test_exceptionformatter.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/exceptions/tests/test_exceptionformatter.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -11,20 +11,16 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""
-ExceptionFormatter tests.
+"""ExceptionFormatter tests.
 
-Revision information:
 $Id$
 """
-
+import sys
 from unittest import TestCase, main, makeSuite
-from zope.testing.cleanup import CleanUp # Base class w registry cleanup
 
-import sys
 from zope.exceptions.exceptionformatter import format_exception
+from zope.testing.cleanup import CleanUp # Base class w registry cleanup
 
-
 def tb(as_html=0):
     t, v, b = sys.exc_info()
     try:
@@ -38,7 +34,7 @@
 
 
 
-class TestingTracebackSupplement:
+class TestingTracebackSupplement(object):
 
     source_url = '/somepath'
     line = 634
@@ -127,7 +123,7 @@
             self.fail('no exception occurred')
 
     def testQuoteLastLine(self):
-        class C: pass
+        class C(object): pass
         try: raise TypeError, C()
         except:
             s = tb(1)

Modified: Zope3/branches/ZopeX3-3.0/src/zope/i18n/gettextmessagecatalog.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/i18n/gettextmessagecatalog.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/i18n/gettextmessagecatalog.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -20,12 +20,12 @@
 from zope.interface import implements
 
 
-class _KeyErrorRaisingFallback:
+class _KeyErrorRaisingFallback(object):
     def ugettext(self, message):
         raise KeyError, message
 
 
-class GettextMessageCatalog:
+class GettextMessageCatalog(object):
     """A message catalog based on GNU gettext and Python's gettext module."""
 
     implements(IGlobalMessageCatalog)

Modified: Zope3/branches/ZopeX3-3.0/src/zope/i18n/locales/xmlfactory.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/i18n/locales/xmlfactory.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/i18n/locales/xmlfactory.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -23,7 +23,7 @@
 from zope.i18n.locales import LocaleFormat, LocaleFormatLength, dayMapping
 from zope.i18n.locales.inheritance import InheritingDictionary
 
-class LocaleFactory:
+class LocaleFactory(object):
     """This class creates a Locale object from an ICU XML file."""
 
     def __init__(self, path):

Modified: Zope3/branches/ZopeX3-3.0/src/zope/i18n/negotiator.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/i18n/negotiator.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/i18n/negotiator.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -33,7 +33,7 @@
         n_langs[normalize_lang(l)] = l
     return n_langs
 
-class Negotiator:
+class Negotiator(object):
     implements(INegotiator)
 
     def getLanguage(self, langs, env):

Modified: Zope3/branches/ZopeX3-3.0/src/zope/i18n/simpletranslationdomain.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/i18n/simpletranslationdomain.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/i18n/simpletranslationdomain.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -20,7 +20,7 @@
 from zope.i18n.interfaces import ITranslationDomain, INegotiator
 from zope.i18n import interpolate
 
-class SimpleTranslationDomain:
+class SimpleTranslationDomain(object):
     """This is the simplest implementation of the ITranslationDomain I
        could come up with.
 

Modified: Zope3/branches/ZopeX3-3.0/src/zope/i18n/tests/test_formats.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/i18n/tests/test_formats.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/i18n/tests/test_formats.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -28,10 +28,10 @@
 from zope.i18n.format import NumberFormat
 from zope.i18n.format import parseNumberPattern
 
-class LocaleStub:
+class LocaleStub(object):
     pass
 
-class LocaleCalendarStub:
+class LocaleCalendarStub(object):
 
     type = u'gregorian'
 

Modified: Zope3/branches/ZopeX3-3.0/src/zope/i18n/tests/test_imessagecatalog.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/i18n/tests/test_imessagecatalog.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/i18n/tests/test_imessagecatalog.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -20,7 +20,7 @@
 from zope.i18n.interfaces import IMessageCatalog
 
 
-class TestIMessageCatalog:
+class TestIMessageCatalog(object):
 
 
     # This should be overwritten by every class that inherits this test

Modified: Zope3/branches/ZopeX3-3.0/src/zope/i18n/tests/test_itranslationdomain.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/i18n/tests/test_itranslationdomain.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/i18n/tests/test_itranslationdomain.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -27,7 +27,7 @@
 from zope.i18n.interfaces import INegotiator, IUserPreferredLanguages
 from zope.i18n.interfaces import ITranslationDomain
 
-class Environment:
+class Environment(object):
 
     implements(IUserPreferredLanguages)
 

Modified: Zope3/branches/ZopeX3-3.0/src/zope/i18n/tests/test_negotiator.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/i18n/tests/test_negotiator.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/i18n/tests/test_negotiator.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -22,7 +22,7 @@
 from zope.component.tests.placelesssetup import PlacelessSetup
 from zope.interface import implements
 
-class Env:
+class Env(object):
     implements(IUserPreferredLanguages)
 
     def __init__(self, langs=()):

Modified: Zope3/branches/ZopeX3-3.0/src/zope/i18n/tests/testi18nawareobject.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/i18n/tests/testi18nawareobject.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/i18n/tests/testi18nawareobject.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -22,7 +22,7 @@
 from zope.interface import implements
 
 
-class I18nAwareContentObject:
+class I18nAwareContentObject(object):
 
     implements(II18nAware)
 

Modified: Zope3/branches/ZopeX3-3.0/src/zope/i18nmessageid/messageid.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/i18nmessageid/messageid.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/i18nmessageid/messageid.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -93,7 +93,7 @@
         self.mapping = mapping
 
 
-class MessageIDFactory:
+class MessageIDFactory(object):
     """Factory for creating MessageIDs."""
 
     def __init__(self, domain):

Modified: Zope3/branches/ZopeX3-3.0/src/zope/importtool/app.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/importtool/app.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/importtool/app.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -12,6 +12,8 @@
 #
 ##############################################################################
 """Command-line tool to perform import analysis.
+
+$Id$
 """
 import optparse
 import os
@@ -48,7 +50,7 @@
     options.reporter.display_report()
 
 
-class Options:
+class Options(object):
 
     known_options = ["--first-import", "--cyclic-imports"]
 

Modified: Zope3/branches/ZopeX3-3.0/src/zope/importtool/hook.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/importtool/hook.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/importtool/hook.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -27,12 +27,11 @@
 
 $Id$
 """
-
 import __builtin__
 import sys
 
 
-class ReportingHook:
+class ReportingHook(object):
 
     def __init__(self, reporter):
         self.reporter = reporter

Modified: Zope3/branches/ZopeX3-3.0/src/zope/importtool/reporter.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/importtool/reporter.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/importtool/reporter.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -11,12 +11,12 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""
+"""Import Reporter
 
 $Id$
 """
 
-class Reporter:
+class Reporter(object):
     """Trivial implementation of the reporter interface."""
 
     def request(self, importer, name, fromlist):

Modified: Zope3/branches/ZopeX3-3.0/src/zope/interface/common/tests/basemapping.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/interface/common/tests/basemapping.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/interface/common/tests/basemapping.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -11,12 +11,10 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""
+"""Base Mapping tests
 
-Revision information:
 $Id$
 """
-
 from operator import __getitem__
 
 def testIReadMapping(self, inst, state, absent):
@@ -67,7 +65,7 @@
     test___len__(self, inst, state)
 
 
-class BaseTestIReadMapping:
+class BaseTestIReadMapping(object):
     def testIReadMapping(self):
         inst = self._IReadMapping__sample()
         state = self._IReadMapping__stateDict()

Modified: Zope3/branches/ZopeX3-3.0/src/zope/interface/declarations.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/interface/declarations.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/interface/declarations.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -350,7 +350,7 @@
         ...
         >>> class I4(I3): pass
         ...
-        >>> class C1:
+        >>> class C1(object):
         ...   implements(I2)
         >>> class C2(C1):
         ...   implements(I3)
@@ -461,9 +461,9 @@
           ...
           >>> class I4(Interface): pass
           ...
-          >>> class A:
+          >>> class A(object):
           ...   implements(I3)
-          >>> class B:
+          >>> class B(object):
           ...   implements(I4)
           >>> class C(A, B):
           ...   pass
@@ -505,9 +505,9 @@
       ...
       >>> class I5(Interface): pass
       ...
-      >>> class A:
+      >>> class A(object):
       ...   implements(I3)
-      >>> class B:
+      >>> class B(object):
       ...   implements(I4)
       >>> class C(A, B):
       ...   pass
@@ -602,9 +602,9 @@
         ...
         >>> class IC(Interface): pass
         ...
-        >>> class A: implements(IA1, IA2)
+        >>> class A(object): implements(IA1, IA2)
         ...
-        >>> class B: implements(IB)
+        >>> class B(object): implements(IB)
         ...
 
         >>> class C(A, B):
@@ -659,9 +659,9 @@
         ...
         >>> class IC(Interface): pass
         ...
-        >>> class A: implements(IA1, IA2)
+        >>> class A(object): implements(IA1, IA2)
         ...
-        >>> class B: implements(IB)
+        >>> class B(object): implements(IB)
         ...
 
         >>> class C(A, B):
@@ -713,7 +713,7 @@
           >>> class IFooFactory(Interface): pass
           ...
           
-          >>> class C:
+          >>> class C(object):
           ...   pass
 
           >>> C.__provides__ = ProvidesClass(C, IFooFactory)
@@ -762,7 +762,7 @@
       >>> collect()
       >>> before = len(InstanceDeclarations)
 
-      >>> class C:
+      >>> class C(object):
       ...    pass
 
       >>> from zope.interface import Interface
@@ -830,9 +830,9 @@
         ...
         >>> class IC(Interface): pass
         ...
-        >>> class A: implements(IA1, IA2)
+        >>> class A(object): implements(IA1, IA2)
         ...
-        >>> class B: implements(IB)
+        >>> class B(object): implements(IB)
         ...
 
         >>> class C(A, B):
@@ -951,7 +951,7 @@
           ...     pass
           >>> class IFoo(Interface):
           ...     pass
-          >>> class C:
+          >>> class C(object):
           ...     implements(IFoo)
           ...     classProvides(IFooFactory)
           >>> [i.getName() for i in C.__provides__]
@@ -1031,7 +1031,7 @@
             ...
             >>> class IFooFactory(Interface): pass
             ...
-            >>> class C:
+            >>> class C(object):
             ...   implements(IFoo)
             ...   classProvides(IFooFactory)
             >>> [i.getName() for i in C.__providedBy__]
@@ -1046,7 +1046,7 @@
             ...
             >>> class IFooFactory(Interface): pass
             ...
-            >>> class C:
+            >>> class C(object):
             ...   implements(IFoo)
             >>> directlyProvides(C, IFooFactory)
             >>> [i.getName() for i in C.__providedBy__]
@@ -1143,9 +1143,9 @@
         ...
         >>> class I5(Interface): pass
         ...
-        >>> class A: implements(I1)
+        >>> class A(object): implements(I1)
         ...
-        >>> class B: __implemented__ = I2
+        >>> class B(object): __implemented__ = I2
         ...
         >>> class C(A, B): implements(I31)
         ...
@@ -1196,7 +1196,7 @@
         ...     pass
         >>> class I2(Interface):
         ...     pass
-        >>> class C:
+        >>> class C(object):
         ...     implements(I1)
         >>> c = C()
         >>> int(bool(providedBy(c)))
@@ -1204,7 +1204,7 @@
         >>> directlyProvides(c, I2)
         >>> int(bool(providedBy(c)))
         1
-        >>> class C:
+        >>> class C(object):
         ...     pass
         >>> c = C()
         >>> int(bool(providedBy(c)))
@@ -1300,7 +1300,7 @@
           ...
           >>> class IFooFactory(Interface): pass
           ...
-          >>> class C:
+          >>> class C(object):
           ...   implements(IFoo)
           ...   classProvides(IFooFactory)
           >>> [i.getName() for i in C.__providedBy__]

Modified: Zope3/branches/ZopeX3-3.0/src/zope/interface/document.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/interface/document.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/interface/document.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -16,12 +16,10 @@
 This module provides a function, asStructuredText, for rendering an
 interface as structured text.
 
-Revision information:
 $Id$
 """
-
-import zope.interface
 from string import maketrans
+import zope.interface
 
 def asStructuredText(I, munge=0):
     """ Output structured text format.  Note, this will wack any existing

Modified: Zope3/branches/ZopeX3-3.0/src/zope/interface/interface.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/interface/interface.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/interface/interface.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -89,10 +89,10 @@
           >>> from zope.interface import *
           >>> class I1(Interface):
           ...     pass
-          >>> class C:
+          >>> class C(object):
           ...     implements(I1)
           >>> c = C()
-          >>> class X:
+          >>> class X(object):
           ...     pass
           >>> x = X()
           >>> I1.providedBy(x)
@@ -616,7 +616,7 @@
                If an object already implements the interface, then it will be
                returned::
 
-                 >>> class C:
+                 >>> class C(object):
                  ...     zope.interface.implements(I)
 
                  >>> obj = C()
@@ -625,7 +625,7 @@
 
                If an object implements __conform__, then it will be used::
 
-                 >>> class C:
+                 >>> class C(object):
                  ...     zope.interface.implements(I)
                  ...     def __conform__(self, proto):
                  ...          return 0
@@ -707,7 +707,7 @@
 
            unless the object given provides the interface::
 
-             >>> class C:
+             >>> class C(object):
              ...     zope.interface.implements(I)
 
              >>> obj = C()

Modified: Zope3/branches/ZopeX3-3.0/src/zope/interface/tests/odd.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/interface/tests/odd.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/interface/tests/odd.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -15,7 +15,7 @@
 
 This is used for testing support for ExtensionClass in new interfaces.
 
-  >>> class A:
+  >>> class A(object):
   ...     __metaclass__ = MetaClass
   ...     a = 1
   ...
@@ -23,7 +23,7 @@
   'A'
   >>> A.__bases__
   ()
-  >>> class B:
+  >>> class B(object):
   ...     __metaclass__ = MetaClass
   ...     b = 1
   ...

Modified: Zope3/branches/ZopeX3-3.0/src/zope/interface/tests/test_advice.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/interface/tests/test_advice.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/interface/tests/test_advice.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -88,7 +88,7 @@
 
     def checkOrder(self):
         log = []
-        class Foo:
+        class Foo(object):
             ping(log, 1)
             ping(log, 2)
             ping(log, 3)

Modified: Zope3/branches/ZopeX3-3.0/src/zope/interface/tests/test_declarations.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/interface/tests/test_declarations.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/interface/tests/test_declarations.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -13,10 +13,8 @@
 ##############################################################################
 """Test the new API for making and checking interface declarations
 
-
 $Id$
 """
-
 import unittest
 from zope.interface import *
 from zope.testing.doctestunit import DocTestSuite
@@ -28,9 +26,9 @@
 class I4(Interface): pass
 class I5(Interface): pass
 
-class A:
+class A(object):
     implements(I1)
-class B:
+class B(object):
     implements(I2)
 class C(A, B):
     implements(I3)
@@ -76,7 +74,7 @@
 
     def test_backward_compat(self):
 
-        class C1: __implemented__ = I1
+        class C1(object): __implemented__ = I1
         class C2(C1): __implemented__ = I2, I5
         class C3(C2): __implemented__ = I3, C2.__implemented__
 
@@ -149,7 +147,7 @@
 def test_signature_w_no_class_interfaces():
     """
     >>> from zope.interface import *
-    >>> class C:
+    >>> class C(object):
     ...     pass
     >>> c = C()
     >>> list(providedBy(c))
@@ -167,13 +165,13 @@
     contrived
 
     >>> from zope.interface import *
-    >>> class B1:
+    >>> class B1(object):
     ...     pass
     >>> class B2(B1):
     ...     pass
     >>> class B3(B2):
     ...     pass
-    >>> class D:
+    >>> class D(object):
     ...     implements()
     >>> class S(B3, D):
     ...     implements()
@@ -200,7 +198,7 @@
 
 def test_that_we_dont_inherit_class_provides():
     """
-    >>> class X:
+    >>> class X(object):
     ...     classProvides(I1)
     >>> class Y(X):
     ...     pass
@@ -220,10 +218,10 @@
     descriptors that provides a default for instances that don't have
     instance-specific declarations:
     
-    >>> class A:
+    >>> class A(object):
     ...     implements(I1)
 
-    >>> class B:
+    >>> class B(object):
     ...     implements(I2)
 
     >>> [i.__name__ for i in A().__provides__]
@@ -270,7 +268,7 @@
           ...     pass
           >>> class IFoo(Interface):
           ...     pass
-          >>> class C:
+          >>> class C(object):
           ...     classProvides(IFooFactory)
           ...     implements(IFoo)
           >>> [i.getName() for i in C.__provides__]

Modified: Zope3/branches/ZopeX3-3.0/src/zope/interface/tests/test_document.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/interface/tests/test_document.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/interface/tests/test_document.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -11,16 +11,14 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""
+"""Documentation tests.
 
-Revision information:
 $Id$
 """
-
 from unittest import TestCase, main, makeSuite
-from zope.interface import Interface
-from zope.interface.interface import Attribute
 
+from zope.interface import Interface, Attribute
+
 class Test(TestCase):
 
     def testBlech(self):

Modified: Zope3/branches/ZopeX3-3.0/src/zope/interface/tests/test_odd_declarations.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/interface/tests/test_odd_declarations.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/interface/tests/test_odd_declarations.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -30,7 +30,7 @@
 class I4(Interface): pass
 class I5(Interface): pass
 
-class Odd: __metaclass__ = odd.MetaClass
+class Odd(object): __metaclass__ = odd.MetaClass
 
 class B(Odd): __implemented__ = I2
 

Modified: Zope3/branches/ZopeX3-3.0/src/zope/interface/tests/test_verify.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/interface/tests/test_verify.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/interface/tests/test_verify.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -11,9 +11,8 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""
+"""Interface Verify tests
 
-Revision information:
 $Id$
 """
 
@@ -28,7 +27,7 @@
 
     def testNotImplemented(self):
 
-        class C: pass
+        class C(object): pass
 
         class I(Interface): pass
 
@@ -43,7 +42,7 @@
         class I(Interface):
             def f(): pass
 
-        class C:
+        class C(object):
             implements(I)
 
         self.assertRaises(BrokenImplementation, verifyClass, I, C)
@@ -61,8 +60,7 @@
         class I(II):
             pass
 
-        class C:
-
+        class C(object):
             implements(I)
 
         self.assertRaises(BrokenImplementation, verifyClass, I, C)
@@ -76,8 +74,7 @@
         class I(Interface):
             def f(a): pass
 
-        class C:
-
+        class C(object):
             def f(self, b): pass
 
             implements(I)
@@ -110,8 +107,7 @@
         class I(Interface):
             def f(a): pass
 
-        class C:
-
+        class C(object):
             def f(self, a, b): pass
 
             implements(I)
@@ -131,8 +127,7 @@
         class I(Interface):
             def f(a, *args): pass
 
-        class C:
-
+        class C(object):
             def f(self, a): pass
 
             implements(I)
@@ -148,8 +143,7 @@
         class I(Interface):
             def f(a, **args): pass
 
-        class C:
-
+        class C(object):
             def f(self, a): pass
 
             implements(I)

Modified: Zope3/branches/ZopeX3-3.0/src/zope/interface/tests/unitfixtures.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/interface/tests/unitfixtures.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/interface/tests/unitfixtures.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -11,6 +11,10 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
+"""Unit Test Fixtures
+
+$Id$
+"""
 from zope.interface import Interface, invariant
 from zope.interface.interface import Attribute
 from zope.interface.exceptions import Invalid
@@ -18,7 +22,7 @@
 class mytest(Interface):
     pass
 
-class C:
+class C(object):
     def m1(self, a, b):
         "return 1"
         return 1
@@ -29,9 +33,6 @@
 
 # testInstancesOfClassImplements
 
-
-
-
 #  YAGNI IC=Interface.impliedInterface(C)
 class IC(Interface):
     def m1(a, b):
@@ -57,7 +58,7 @@
 class A(I1.deferred()):
     __implemented__=I1
 
-class B:
+class B(object):
     __implemented__=I2, I3
 
 class D(A, B): pass
@@ -83,7 +84,7 @@
     def useless(**keywords):
         """ useless code is fun! """
 
-class Foo:
+class Foo(object):
     """ A concrete class """
 
     __implemented__ = FooInterface,
@@ -108,7 +109,7 @@
 
 foo_instance = Foo()
 
-class Blah:
+class Blah(object):
     pass
 
 new = Interface.__class__

Modified: Zope3/branches/ZopeX3-3.0/src/zope/pagetemplate/tests/batch.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/pagetemplate/tests/batch.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/pagetemplate/tests/batch.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -11,11 +11,12 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-##__allow_access_to_unprotected_subobjects__={'batch': 1}
-##__roles__=None
+"""Batching support tests
 
+$Id$
+"""
 
-class batch:
+class batch(object):
     """Create a sequence batch"""
 
     def __init__(self, sequence, size, start=0, end=0,

Modified: Zope3/branches/ZopeX3-3.0/src/zope/pagetemplate/tests/test_htmltests.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/pagetemplate/tests/test_htmltests.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/pagetemplate/tests/test_htmltests.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -11,13 +11,17 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
+"""Page Template HTML Tests
+
+$Id$
+"""
 import unittest
 
 from zope.pagetemplate.tests import util
 from zope.pagetemplate.pagetemplate import PageTemplate
 
 
-class Folder:
+class Folder(object):
     context = property(lambda self: self)
 
 class HTMLTests(unittest.TestCase):

Modified: Zope3/branches/ZopeX3-3.0/src/zope/pagetemplate/tests/testpackage/content.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/pagetemplate/tests/testpackage/content.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/pagetemplate/tests/testpackage/content.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -11,11 +11,12 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""
+"""Content
+
 $Id$
 """
 
-class Content:
+class Content(object):
     def getSomething(self):
         return 42
 

Modified: Zope3/branches/ZopeX3-3.0/src/zope/pagetemplate/tests/util.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/pagetemplate/tests/util.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/pagetemplate/tests/util.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -11,12 +11,16 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
+"""Utilities
+
+$Id$
+"""
 import os
 import re
 import sys
 
 
-class Bruce:
+class Bruce(object):
     __allow_access_to_unprotected_subobjects__=1
     def __str__(self): return 'bruce'
     def __int__(self): return 42
@@ -37,12 +41,12 @@
 
 bruce = Bruce()
 
-class arg:
+class arg(object):
     __allow_access_to_unprotected_subobjects__ = 1
     def __init__(self,nn,aa): self.num, self.arg = nn, aa
     def __str__(self): return str(self.arg)
 
-class argv:
+class argv(object):
     __allow_access_to_unprotected_subobjects__ = 1
 
     def __init__(self, argv=sys.argv[1:]):

Modified: Zope3/branches/ZopeX3-3.0/src/zope/proxy/tests/test_proxy.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/proxy/tests/test_proxy.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/proxy/tests/test_proxy.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -23,9 +23,9 @@
 from zope.proxy import ProxyBase
 
 class Thing:
-    pass
+    """This class is expected to be a classic class."""
 
-class Comparable:
+class Comparable(object):
     def __init__(self, value):
         self.value = value
 
@@ -200,7 +200,7 @@
         # still to work.  PyObject_GetIter() will not be called on the
         # proxy, so the tp_iter slot won't unwrap it.
 
-        class Iterable:
+        class Iterable(object):
             def __init__(self, test, data):
                 self.test = test
                 self.data = data
@@ -347,7 +347,7 @@
     ...     pass
     >>> class P2(ProxyBase):
     ...     pass
-    >>> class C:
+    >>> class C(object):
     ...     pass
     >>> c = C()
     >>> int(isProxy(c))
@@ -370,7 +370,7 @@
 def test_getProxiedObject():
     """
     >>> from zope.proxy import ProxyBase, getProxiedObject
-    >>> class C:
+    >>> class C(object):
     ...     pass
     >>> c = C()
     >>> int(getProxiedObject(c) is c)
@@ -387,7 +387,7 @@
 def test_ProxyIterator():
     """
     >>> from zope.proxy import ProxyBase, ProxyIterator
-    >>> class C:
+    >>> class C(object):
     ...     pass
     >>> c = C()
     >>> p1 = ProxyBase(c)
@@ -402,7 +402,7 @@
 def test_removeAllProxies():
     """
     >>> from zope.proxy import ProxyBase, removeAllProxies
-    >>> class C:
+    >>> class C(object):
     ...     pass
     >>> c = C()
     >>> int(removeAllProxies(c) is c)
@@ -423,7 +423,7 @@
     ...    pass
     >>> class P2(ProxyBase):
     ...    pass
-    >>> class C:
+    >>> class C(object):
     ...     pass
     >>> c = C()
     >>> queryProxy(c, P1)
@@ -452,7 +452,7 @@
     ...    pass
     >>> class P2(ProxyBase):
     ...    pass
-    >>> class C:
+    >>> class C(object):
     ...     pass
     >>> c = C()
     >>> queryInnerProxy(c, P1)
@@ -485,7 +485,7 @@
 def test_sameProxiedObjects():
     """
     >>> from zope.proxy import ProxyBase, sameProxiedObjects
-    >>> class C:
+    >>> class C(object):
     ...     pass
     >>> c1 = C()
     >>> c2 = C()

Modified: Zope3/branches/ZopeX3-3.0/src/zope/publisher/browser.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/publisher/browser.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/publisher/browser.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -728,7 +728,7 @@
     lang = lang.replace(' ', '')
     return lang
 
-class BrowserLanguages:
+class BrowserLanguages(object):
 
     implements(IUserPreferredLanguages)
 

Modified: Zope3/branches/ZopeX3-3.0/src/zope/publisher/http.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/publisher/http.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/publisher/http.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -959,7 +959,7 @@
         return text
 
 
-class DefaultPublisher:
+class DefaultPublisher(object):
     implements(IHTTPPublisher)
 
     def publishTraverse(self, request, name):
@@ -975,7 +975,7 @@
     return cmp(y, x)
 
 
-class HTTPCharsets:
+class HTTPCharsets(object):
     implements(IUserPreferredCharsets)
 
     def __init__(self, request):

Modified: Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/basetestiapplicationrequest.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/basetestiapplicationrequest.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/basetestiapplicationrequest.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -11,12 +11,10 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""
+"""IApplicationRequest Base Test
 
-Revision information:
 $Id$
 """
-
 from zope.interface.verify import verifyObject
 from zope.publisher.interfaces import IApplicationRequest
 

Modified: Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/basetestipublicationrequest.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/basetestipublicationrequest.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/basetestipublicationrequest.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -11,9 +11,8 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""
+"""IPublicationRequest base test
 
-Revision information:
 $Id$
 """
 
@@ -22,7 +21,7 @@
 from zope.publisher.interfaces import IPublicationRequest
 
 
-class BaseTestIPublicationRequest:
+class BaseTestIPublicationRequest(object):
     def testVerifyIPublicationRequest(self):
         verifyObject(IPublicationRequest, self._Test__new())
 

Modified: Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/basetestipublisherrequest.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/basetestipublisherrequest.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/basetestipublisherrequest.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -11,9 +11,8 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""
+"""IPublisherReuqest Test
 
-Revision information:
 $Id$
 """
 
@@ -21,7 +20,7 @@
 from zope.publisher.interfaces import IPublisherRequest
 
 
-class BaseTestIPublisherRequest:
+class BaseTestIPublisherRequest(object):
     def testVerifyIPublisherRequest(self):
         verifyObject(IPublisherRequest, self._Test__new())
 

Modified: Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/publication.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/publication.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/publication.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -11,14 +11,15 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""
+"""Publication test
+
 $Id$
 """
 
 from zope.publisher.interfaces import IPublication
 from zope.interface import implements
 
-class TestPublication:
+class TestPublication(object):
 
     implements(IPublication)
 
@@ -63,7 +64,7 @@
         self._callTraversalHooks = getattr(self, '_callTraversalHooks', 0) + 1
 
 
-class App:
+class App(object):
 
     def __init__(self, name):
         self.name = name

Modified: Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/test_browserrequest.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/test_browserrequest.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/test_browserrequest.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -67,33 +67,33 @@
     def setUp(self):
         super(BrowserTests, self).setUp()
 
-        class AppRoot:
-            " "
+        class AppRoot(object):
+            """Required docstring for the publisher."""
 
-        class Folder:
-            " "
+        class Folder(object):
+            """Required docstring for the publisher."""
 
-        class Item:
-            " "
+        class Item(object):
+            """Required docstring for the publisher."""
             def __call__(self, a, b):
                 return "%s, %s" % (`a`, `b`)
 
-        class Item3:
-            " "
+        class Item3(object):
+            """Required docstring for the publisher."""
             def __call__(self, *args):
                 return "..."
 
-        class View:
-            " "
+        class View(object):
+            """Required docstring for the publisher."""
             def browserDefault(self, request):
                 return self, ['index']
 
             def index(self, a, b):
-                " "
+                """Required docstring for the publisher."""
                 return "%s, %s" % (`a`, `b`)
 
-        class Item2:
-            " "
+        class Item2(object):
+            """Required docstring for the publisher."""
             view = View()
 
             def browserDefault(self, request):

Modified: Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/test_http.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/test_http.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/test_http.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -34,7 +34,7 @@
 from StringIO import StringIO
 
 
-class UserStub:
+class UserStub(object):
     implements(ILoggingInfo)
 
     def __init__(self, id):
@@ -63,14 +63,14 @@
     }
 
     def setUp(self):
-        class AppRoot:
-            " "
+        class AppRoot(object):
+            """Required docstring for the publisher."""
 
-        class Folder:
-            " "
+        class Folder(object):
+            """Required docstring for the publisher."""
 
-        class Item:
-            " "
+        class Item(object):
+            """Required docstring for the publisher."""            
             def __call__(self, a, b):
                 return "%s, %s" % (`a`, `b`)
 
@@ -256,7 +256,7 @@
         self.assertEquals(lpw, (login, password))
 
     def testSetPrincipal(self):
-        class HTTPTaskStub:
+        class HTTPTaskStub(object):
             auth_user_name = None
             def setAuthUserName(self, name):
                 self.auth_user_name = name

Modified: Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/test_ipublication.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/test_ipublication.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/test_ipublication.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -11,9 +11,8 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""
+"""IPublication Test
 
-Revision information:
 $Id$
 """
 
@@ -24,7 +23,7 @@
 
 from zope.publisher.interfaces import IPublication
 
-class BaseIPublicationTest:
+class BaseIPublicationTest(object):
 
     # This test isn't as interesting as we'd like it to be because we
     # know too little about the semantics if a particular publication

Modified: Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/test_mapply.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/test_mapply.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/test_mapply.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -11,6 +11,10 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
+"""Test mapply() function
+
+$Id$
+"""
 import unittest
 
 from zope.publisher.publish import mapply
@@ -29,7 +33,7 @@
 
     def testClass(self):
         values = {'a':2, 'b':3, 'c':5}
-        class c:
+        class c(object):
             a = 3
             def __call__(self, b, c=4):
                 return '%d%d%d' % (self.a, b, c)
@@ -42,7 +46,9 @@
         v = mapply(cc.compute, (), values)
         self.failUnlessEqual(v, '334')
 
-        class c2: pass
+        class c2:
+            """Must be a classic class."""
+            
         c2inst = c2()
         c2inst.__call__ = cc
         v = mapply(c2inst, (), values)

Modified: Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/test_publisher.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/test_publisher.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/test_publisher.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -11,11 +11,10 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""
+"""Test Publisher
 
 $Id$
 """
-
 import unittest
 
 from zope.publisher.publish import publish
@@ -36,14 +35,14 @@
 
 class PublisherTests(unittest.TestCase):
     def setUp(self):
-        class AppRoot:
-            " "
+        class AppRoot(object):
+            """Required docstring for the publisher."""
 
-        class Folder:
-            " "
+        class Folder(object):
+            """Required docstring for the publisher."""
 
-        class Item:
-            " "
+        class Item(object):
+            """Required docstring for the publisher."""
             def __call__(self):
                 return "item"
 

Modified: Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/test_requestdataproperty.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/test_requestdataproperty.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/test_requestdataproperty.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -11,12 +11,10 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""
+"""Request Data-Property Tests
 
-Revision information:
 $Id$
 """
-
 from unittest import TestCase, main, makeSuite
 
 from zope.interface.common.tests.basemapping \

Modified: Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/test_xmlrpcmethodpublisher.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/test_xmlrpcmethodpublisher.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/test_xmlrpcmethodpublisher.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -11,6 +11,10 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
+"""XML-RPC Method Publisher tests
+
+$Id$
+"""
 import unittest
 
 from zope.publisher.xmlrpc import MethodPublisher, TestRequest
@@ -19,7 +23,7 @@
 from zope.interface.verify import verifyClass
 from zope.interface import implementedBy
 
-class ContentStub:
+class ContentStub(object):
     pass
 
 class Presentation(MethodPublisher):

Modified: Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/test_xmlrpcrequest.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/test_xmlrpcrequest.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/test_xmlrpcrequest.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -74,13 +74,13 @@
     def setUp(self):
         super(XMLRPCTests, self).setUp()
 
-        class AppRoot:
-            " "
+        class AppRoot(object):
+            pass
 
-        class Folder:
-            " "
+        class Folder(object):
+            pass
 
-        class Item:
+        class Item(object):
 
             def __call__(self, a, b):
                 return "%s, %s" % (`a`, `b`)
@@ -88,13 +88,13 @@
             def doit(self, a, b):
                 return 'do something %s %s' % (a, b)
 
-        class View:
+        class View(object):
 
             def action(self, a):
                 return "Parameter[type: %s; value: %s" %(
                     type(a).__name__, `a`)
 
-        class Item2:
+        class Item2(object):
             view = View()
 
 

Modified: Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/views.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/views.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/views.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -11,9 +11,9 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""
+"""Test objects and interfaces.
 
-Revision information: $Id$
+$Id$
 """
 
 from zope.interface import Interface, implements
@@ -25,7 +25,7 @@
 
 class VZMI(V1): pass
 
-class R1:
+class R1(object):
     def __init__(self, request): self.request = request
 
 class RZMI(R1):

Modified: Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/xmlrpcviews.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/xmlrpcviews.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/publisher/tests/xmlrpcviews.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -11,17 +11,16 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""
+"""XML-RPC Views test objects
 
-Revision information: $Id$
+$Id$
 """
-
 from zope.interface import Interface, implements
 from zope.publisher.interfaces.xmlrpc import IXMLRPCPublisher
 
 class IC(Interface): pass
 
-class V1:
+class V1(object):
     implements(IXMLRPCPublisher)
 
     def __init__(self, context, request):
@@ -31,7 +30,7 @@
 class VZMI(V1):
     pass
 
-class R1:
+class R1(object):
     def __init__(self, request):
         self.request = request
 

Modified: Zope3/branches/ZopeX3-3.0/src/zope/schema/tests/states.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/schema/tests/states.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/schema/tests/states.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -84,7 +84,7 @@
     }
 
 
-class State:
+class State(object):
     __slots__ = 'value', 'title'
     implements(interfaces.ITerm)
 

Modified: Zope3/branches/ZopeX3-3.0/src/zope/schema/tests/tabcomplete.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/schema/tests/tabcomplete.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/schema/tests/tabcomplete.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -11,10 +11,10 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
+"""Example vocabulary for tab completion.
 
-"""Example vocabulary for tab completion."""
-
-
+$Id$
+"""
 from zope.schema.interfaces import ITerm, IVocabulary, IVocabularyQuery
 from zope.interface import implements
 
@@ -27,7 +27,7 @@
         prefix."""
 
 
-class Term:
+class Term(object):
     implements(ITerm)
 
     def __init__(self, value):
@@ -62,7 +62,7 @@
         raise LookupError(value)
 
 
-class PrefixQuery:
+class PrefixQuery(object):
     implements(IPrefixQuery)
 
     def __init__(self, vocabulary):

Modified: Zope3/branches/ZopeX3-3.0/src/zope/schema/tests/test_accessors.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/schema/tests/test_accessors.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/schema/tests/test_accessors.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -15,7 +15,6 @@
 
 $Id$
 """
-
 import unittest
 from zope.interface import Interface, implements
 from zope.schema import Text, accessors
@@ -35,10 +34,10 @@
 
             getFoo, setFoo = accessors(field)
 
-        class Bad:
+        class Bad(object):
             implements(I)
 
-        class Good:
+        class Good(object):
             implements(I)
 
             def getFoo(self):

Modified: Zope3/branches/ZopeX3-3.0/src/zope/schema/tests/test_listfield.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/schema/tests/test_listfield.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/schema/tests/test_listfield.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -99,7 +99,7 @@
 
         # however, allow anything that implements IField
         List(value_type=Field())
-        class FakeField:
+        class FakeField(object):
             implements(IField)
         List(value_type=FakeField())
 

Modified: Zope3/branches/ZopeX3-3.0/src/zope/schema/tests/test_setfield.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/schema/tests/test_setfield.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/schema/tests/test_setfield.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -108,7 +108,7 @@
 
         # however, allow anything that implements IField
         Set(value_type=Field())
-        class FakeField:
+        class FakeField(object):
             implements(IField)
         Set(value_type=FakeField())
     

Modified: Zope3/branches/ZopeX3-3.0/src/zope/schema/tests/test_tuplefield.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/schema/tests/test_tuplefield.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/schema/tests/test_tuplefield.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -105,7 +105,7 @@
 
         # however, allow anything that implements IField
         Tuple(value_type=Field())
-        class FakeField:
+        class FakeField(object):
             implements(IField)
         Tuple(value_type=FakeField())
 

Modified: Zope3/branches/ZopeX3-3.0/src/zope/schema/tests/test_vocabulary.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/schema/tests/test_vocabulary.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/schema/tests/test_vocabulary.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -57,10 +57,10 @@
 
     # TODO: still need to test the default implementation
 
-class SampleTerm:
+class SampleTerm(object):
     pass
 
-class SampleVocabulary:
+class SampleVocabulary(object):
     implements(interfaces.IVocabulary)
 
     def __iter__(self):
@@ -152,7 +152,7 @@
             [(1, 'one'), ('1', 'another one')])
 
     def test_overriding_createTerm(self):
-        class MyTerm:
+        class MyTerm(object):
             def __init__(self, value):
                 self.value = value
                 self.token = repr(value)

Modified: Zope3/branches/ZopeX3-3.0/src/zope/security/examples/sandbox.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/security/examples/sandbox.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/security/examples/sandbox.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -69,7 +69,7 @@
     pass
 
 
-class Identity:
+class Identity(object):
     """Mixin for pretty printing and identity method"""
     def __init__(self, id, *args, **kw):
         self.id = id
@@ -164,7 +164,7 @@
                 agent, destination)
                                )
 
-class Service:
+class Service(object):
     implements(IService)
     def getId(self):
         return self.__class__.__name__
@@ -212,9 +212,8 @@
     time_service = home.getService('TimeService')
     return time_service.getTime()
 
-class TimeGenerator:
-    """
-    Represents the passage of time in the agent simulation.
+class TimeGenerator(object):
+    """Represents the passage of time in the agent simulation.
 
     each turn represents some discrete unit of time, during
     which all agents attempt to perform their action. Additionally,

Modified: Zope3/branches/ZopeX3-3.0/src/zope/security/examples/sandbox_security.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/security/examples/sandbox_security.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/security/examples/sandbox_security.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -50,7 +50,7 @@
 NoSetAttr = lambda name: NotAllowed
 
 
-class SimulationSecurityDatabase:
+class SimulationSecurityDatabase(object):
     """Security Database
 
     In the database, locations are mapped to authentication tokens to
@@ -103,7 +103,7 @@
         return True
 
 
-class AgentParticipation:
+class AgentParticipation(object):
     """Agent Participation during the Simulation.
 
     A very simple participation that is specific to the simulations.

Modified: Zope3/branches/ZopeX3-3.0/src/zope/security/tests/test_checker.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/security/tests/test_checker.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/security/tests/test_checker.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -293,7 +293,7 @@
     def testAlwaysAvailable(self):
         from zope.security.checker import NamesChecker
         checker = NamesChecker(())
-        class C: pass
+        class C(object): pass
         self.assertEqual(checker.check(C, '__hash__'), None)
         self.assertEqual(checker.check(C, '__nonzero__'), None)
         self.assertEqual(checker.check(C, '__class__'), None)
@@ -318,7 +318,7 @@
     # values that evaluate to False
 
     def test_ProxyFactory(self):
-        class SomeClass:
+        class SomeClass(object):
             pass
         import zope.security
         checker = NamesChecker()
@@ -349,7 +349,7 @@
         self.assert_(getChecker(proxy) is specific_checker)
 
     def test_ProxyFactory_using_proxy(self):
-        class SomeClass:
+        class SomeClass(object):
             pass
         obj = SomeClass()
         checker = NamesChecker()

Modified: Zope3/branches/ZopeX3-3.0/src/zope/security/tests/test_management.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/security/tests/test_management.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/security/tests/test_management.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -68,7 +68,7 @@
         permission = 'zope.Test'
         obj = object()
 
-        class PolicyStub:
+        class PolicyStub(object):
 
             def checkPermission(s, p, o,):
                 self.assert_(p is permission)

Modified: Zope3/branches/ZopeX3-3.0/src/zope/security/tests/test_proxy.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/security/tests/test_proxy.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/security/tests/test_proxy.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -11,6 +11,11 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
+"""Security proxy tests
+
+$Id$
+"""
+
 import unittest
 from zope.security.proxy import getChecker, ProxyFactory, getProxiedObject
 from zope.proxy import ProxyBase as proxy
@@ -225,7 +230,7 @@
         self.assertEqual(self.c, getChecker(self.p))
 
     def testProxiedClassicClassAsDictKey(self):
-        class C:
+        class C(object):
             pass
         d = {C: C()}
         pC = ProxyFactory(C, self.c)

Modified: Zope3/branches/ZopeX3-3.0/src/zope/security/tests/test_simpleinteraction.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/security/tests/test_simpleinteraction.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/security/tests/test_simpleinteraction.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -11,15 +11,17 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""Unit tests for zope.security.simpleinteraction."""
+"""Unit tests for zope.security.simpleinteraction.
 
+$Id$
+"""
 import unittest
 
 from zope.interface.verify import verifyObject
 from zope.security.interfaces import IInteraction
 from zope.security.simplepolicies import ParanoidSecurityPolicy
 
-class RequestStub:
+class RequestStub(object):
 
     def __init__(self, principal=None):
         self.principal = principal

Modified: Zope3/branches/ZopeX3-3.0/src/zope/security/tests/test_standard_checkers.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/security/tests/test_standard_checkers.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/security/tests/test_standard_checkers.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -18,7 +18,6 @@
 
 $Id$
 """
-
 from zope.security.checker import ProxyFactory, NamesChecker
 from zope.security.interfaces import ForbiddenAttribute
 
@@ -356,7 +355,7 @@
 def test_classic_instance():
     """
 
-    >>> class C:
+    >>> class C(object):
     ...    x, y = 1, 2
     >>> c = ProxyFactory(C(), NamesChecker(['x']))
     >>> check_forbidden_get(c, 'y')
@@ -423,7 +422,7 @@
 
 def test_iter_of_sequences():
     """
-    >>> class X:
+    >>> class X(object):
     ...   d = 1, 2, 3
     ...   def __getitem__(self, i):
     ...      return self.d[i]

Modified: Zope3/branches/ZopeX3-3.0/src/zope/server/adjustments.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/server/adjustments.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/server/adjustments.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -15,11 +15,10 @@
 
 $Id$
 """
-
 from zope.server import maxsockets
 
 
-class Adjustments:
+class Adjustments(object):
     """This class contains tunable communication parameters.
 
     You can either change default_adj to adjust parameters for

Modified: Zope3/branches/ZopeX3-3.0/src/zope/server/buffers.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/server/buffers.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/server/buffers.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -1,13 +1,20 @@
-# Copyright 2001-2002 Zope Corporation and Contributors.  All Rights Reserved.
+##############################################################################
 #
+# Copyright (c) 2001-2004 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
 # This software is subject to the provisions of the Zope Public License,
 # Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
 # FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+"""Buffers
 
-
+$Id$
+"""
 try:
     from cStringIO import StringIO
 except ImportError:
@@ -21,7 +28,7 @@
 STRBUF_LIMIT = 8192
 
 
-class FileBasedBuffer:
+class FileBasedBuffer(object):
 
     remain = 0
 
@@ -125,7 +132,7 @@
 
 
 
-class OverflowableBuffer:
+class OverflowableBuffer(object):
     """
     This buffer implementation has four stages:
     - No data

Modified: Zope3/branches/ZopeX3-3.0/src/zope/server/fixedstreamreceiver.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/server/fixedstreamreceiver.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/server/fixedstreamreceiver.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -11,7 +11,7 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""
+"""Fixed Stream Receiver
 
 $Id$
 """
@@ -20,7 +20,7 @@
 from zope.interface import implements
 
 
-class FixedStreamReceiver:
+class FixedStreamReceiver(object):
 
     implements(IStreamConsumer)
 

Modified: Zope3/branches/ZopeX3-3.0/src/zope/server/ftp/logger.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/server/ftp/logger.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/server/ftp/logger.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -11,11 +11,10 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""
+"""Common FTP Activity Logger
 
 $Id$
 """
-
 import time
 
 from zope.server.http.commonaccesslogger import CommonAccessLogger

Modified: Zope3/branches/ZopeX3-3.0/src/zope/server/ftp/publisher.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/server/ftp/publisher.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/server/ftp/publisher.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -29,7 +29,7 @@
 
 from zope.interface import implements
 
-class PublisherFileSystem:
+class PublisherFileSystem(object):
     """Generic Publisher FileSystem implementation."""
 
     implements(IFileSystem)
@@ -123,7 +123,7 @@
         return path
 
 
-class NoOutput:
+class NoOutput(object):
     """An output stream lookalike that warns you if you try to
     dump anything into it."""
 
@@ -144,7 +144,7 @@
         super(PublisherFTPServer, self).__init__(ip, port, fs_access,
                                                  *args, **kw)
 
-class PublisherFileSystemAccess:
+class PublisherFileSystemAccess(object):
 
     implements(IFileSystemAccess)
 

Modified: Zope3/branches/ZopeX3-3.0/src/zope/server/ftp/server.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/server/ftp/server.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/server/ftp/server.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -769,7 +769,7 @@
 
 
 
-class FinishedRecvTask:
+class FinishedRecvTask(object):
 
     implements(ITask)
 
@@ -867,7 +867,7 @@
                 ChannelBaseClass.close(self)
 
 
-class ApplicationXmitStream:
+class ApplicationXmitStream(object):
     """Provide stream output, remapping close() to close_when_done().
     """
 

Modified: Zope3/branches/ZopeX3-3.0/src/zope/server/ftp/tests/fstests.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/server/ftp/tests/fstests.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/server/ftp/tests/fstests.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -15,12 +15,11 @@
 
 $Id$
 """
-
 from StringIO import StringIO
 from zope.interface.verify import verifyObject
 from zope.server.interfaces.ftp import IFileSystem
 
-class FileSystemTests:
+class FileSystemTests(object):
     """Tests of a readable filesystem
     """
 

Modified: Zope3/branches/ZopeX3-3.0/src/zope/server/ftp/tests/test_publisher.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/server/ftp/tests/test_publisher.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/server/ftp/tests/test_publisher.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -28,7 +28,7 @@
         return demofs.DemoFileSystem.rename(
             self, "%s/%s" % (path, old), "%s/%s" % (path, new)) 
 
-class Publication:
+class Publication(object):
 
     def __init__(self, root):
         self.root = root
@@ -58,7 +58,7 @@
         request.response._exc = info[:2]
         
 
-class Request:
+class Request(object):
 
     def __init__(self, input, output, env):
         self.env = env
@@ -76,7 +76,7 @@
     def close(self):
         pass
 
-class Response:
+class Response(object):
 
     _exc = _body = None
 
@@ -91,7 +91,7 @@
             raise self._exc[0], self._exc[1]
         return self._body
 
-class RequestFactory:
+class RequestFactory(object):
 
     def __init__(self, root):
         self.pub = Publication(root)

Modified: Zope3/branches/ZopeX3-3.0/src/zope/server/http/chunking.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/server/http/chunking.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/server/http/chunking.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -11,7 +11,7 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""
+"""Data Chunk Receiver
 
 $Id$
 """
@@ -21,7 +21,7 @@
 from zope.interface import implements
 
 
-class ChunkedReceiver:
+class ChunkedReceiver(object):
 
     implements(IStreamConsumer)
 

Modified: Zope3/branches/ZopeX3-3.0/src/zope/server/http/commonaccesslogger.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/server/http/commonaccesslogger.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/server/http/commonaccesslogger.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -11,7 +11,7 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""
+"""Common Access Logger
 
 $Id$
 """
@@ -23,7 +23,7 @@
 from zope.server.logger.resolvinglogger import ResolvingLogger
 from zope.server.logger.unresolvinglogger import UnresolvingLogger
 
-class CommonAccessLogger:
+class CommonAccessLogger(object):
     """Outputs accesses in common HTTP log format.
     """
 

Modified: Zope3/branches/ZopeX3-3.0/src/zope/server/http/httprequestparser.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/server/http/httprequestparser.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/server/http/httprequestparser.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -11,13 +11,13 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""
+"""HTTP Request Parser
+
 This server uses asyncore to accept connections and do initial
 processing but threads to do work.
 
 $Id$
 """
-
 import re
 from urllib import unquote
 
@@ -33,7 +33,7 @@
     from StringIO import StringIO
 
 
-class HTTPRequestParser:
+class HTTPRequestParser(object):
     """A structure that collects the HTTP request.
 
     Once the stream is completed, the instance is passed to

Modified: Zope3/branches/ZopeX3-3.0/src/zope/server/http/httptask.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/server/http/httptask.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/server/http/httptask.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -34,7 +34,7 @@
     'CONNECTION'     : 'CONNECTION_TYPE',
     }
 
-class HTTPTask:
+class HTTPTask(object):
     """An HTTP task accepts a request and writes to a channel.
 
        Subclass this and override the execute() method.

Modified: Zope3/branches/ZopeX3-3.0/src/zope/server/http/tests/test_httpserver.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/server/http/tests/test_httpserver.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/server/http/tests/test_httpserver.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -61,7 +61,7 @@
             task.write(data)
 
 
-class SleepingTask:
+class SleepingTask(object):
 
     implements(ITask)
 

Modified: Zope3/branches/ZopeX3-3.0/src/zope/server/http/tests/test_publisherserver.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/server/http/tests/test_publisherserver.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/server/http/tests/test_publisherserver.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -9,11 +9,10 @@
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
 # FOR A PARTICULAR PURPOSE.
 ##############################################################################
-"""
+"""Test Puvlisher-based HTTP Server
 
 $Id$
 """
-
 import unittest
 from asyncore import socket_map, poll
 from threading import Thread
@@ -44,7 +43,7 @@
 HTTPRequest.STAGGER_RETRIES = 0  # Don't pause.
 
 
-class Conflict (Exception):
+class Conflict(Exception):
     """
     Pseudo ZODB conflict error.
     """
@@ -61,8 +60,8 @@
                                                retry_allowed)
 
 
-class tested_object:
-    " "
+class tested_object(object):
+    """Docstring required by publisher."""
     tries = 0
 
     def __call__(self, REQUEST):
@@ -87,7 +86,6 @@
             raise Conflict
 
 
-
 class Tests(PlacelessSetup, unittest.TestCase):
 
     def setUp(self):

Modified: Zope3/branches/ZopeX3-3.0/src/zope/server/linereceiver/linecommandparser.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/server/linereceiver/linecommandparser.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/server/linereceiver/linecommandparser.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -11,16 +11,15 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""
+"""Line Command Parser
 
 $Id$
 """
-
 from zope.server.interfaces import IStreamConsumer
 from zope.interface import implements
 
 
-class LineCommandParser:
+class LineCommandParser(object):
     """Line Command parser. Arguments are left alone for now."""
 
     implements(IStreamConsumer)

Modified: Zope3/branches/ZopeX3-3.0/src/zope/server/linereceiver/linetask.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/server/linereceiver/linetask.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/server/linereceiver/linetask.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -11,18 +11,17 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""
+"""Line Task
 
 $Id$
 """
-
 import socket
 import time
 from zope.server.interfaces import ITask
 from zope.interface import implements
 
 
-class LineTask:
+class LineTask(object):
     """This is a generic task that can be used with command line
        protocols to handle commands in a separate thread.
     """

Modified: Zope3/branches/ZopeX3-3.0/src/zope/server/logger/filelogger.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/server/logger/filelogger.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/server/logger/filelogger.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -11,7 +11,7 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""
+"""File Logger
 
 $Id$
 """
@@ -20,7 +20,7 @@
 from zope.server.interfaces.logger import IMessageLogger
 from zope.interface import implements
 
-class FileLogger:
+class FileLogger(object):
     """Simple File Logger
     """
 

Modified: Zope3/branches/ZopeX3-3.0/src/zope/server/logger/m_syslog.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/server/logger/m_syslog.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/server/logger/m_syslog.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -136,7 +136,7 @@
 
 import socket
 
-class syslog_client:
+class syslog_client(object):
 
     def __init__(self, address='/dev/log'):
         self.address = address

Modified: Zope3/branches/ZopeX3-3.0/src/zope/server/logger/pythonlogger.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/server/logger/pythonlogger.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/server/logger/pythonlogger.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -20,7 +20,7 @@
 from zope.server.interfaces.logger import IMessageLogger
 from zope.interface import implements
 
-class PythonLogger:
+class PythonLogger(object):
     """Proxy for Python's logging module"""
 
     implements(IMessageLogger)

Modified: Zope3/branches/ZopeX3-3.0/src/zope/server/logger/resolvinglogger.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/server/logger/resolvinglogger.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/server/logger/resolvinglogger.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -11,7 +11,7 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""
+"""Resolving Logger
 
 $Id$
 """
@@ -19,7 +19,7 @@
 from zope.interface import implements
 
 
-class ResolvingLogger:
+class ResolvingLogger(object):
     """Feed (ip, message) combinations into this logger to get a
     resolved hostname in front of the message.  The message will not
     be logged until the PTR request finishes (or fails)."""
@@ -31,7 +31,7 @@
         # logger is an IMessageLogger
         self.logger = logger
 
-    class logger_thunk:
+    class logger_thunk(object):
         def __init__(self, message, logger):
             self.message = message
             self.logger = logger

Modified: Zope3/branches/ZopeX3-3.0/src/zope/server/logger/taillogger.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/server/logger/taillogger.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/server/logger/taillogger.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -11,15 +11,14 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""
+"""Tail Logger
 
 $Id$
 """
-
 from zope.server.interfaces.logger import IMessageLogger
 from zope.interface import implements
 
-class TailLogger:
+class TailLogger(object):
     """Keep track of the last <size> log messages"""
 
     implements(IMessageLogger)

Modified: Zope3/branches/ZopeX3-3.0/src/zope/server/logger/unresolvinglogger.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/server/logger/unresolvinglogger.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/server/logger/unresolvinglogger.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -11,14 +11,14 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""
+"""Unresolving Logger
 
 $Id$
 """
 from zope.server.interfaces.logger import IRequestLogger
 from zope.interface import implements
 
-class UnresolvingLogger:
+class UnresolvingLogger(object):
     """Just in case you don't want to resolve"""
 
     implements(IRequestLogger)

Modified: Zope3/branches/ZopeX3-3.0/src/zope/server/taskthreads.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/server/taskthreads.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/server/taskthreads.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -24,7 +24,7 @@
 from zope.interface import implements
 
 
-class ThreadedTaskDispatcher:
+class ThreadedTaskDispatcher(object):
     """A Task Dispatcher that creates a thread for each task."""
 
     implements(ITaskDispatcher)

Modified: Zope3/branches/ZopeX3-3.0/src/zope/tal/dummyengine.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/tal/dummyengine.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/tal/dummyengine.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -30,7 +30,7 @@
 class CompilerError(Exception):
     pass
 
-class DummyEngine:
+class DummyEngine(object):
 
     position = None
     source_file = None
@@ -247,7 +247,7 @@
 
         return result.getvalue()
 
-class Iterator:
+class Iterator(object):
 
     def __init__(self, name, seq, engine):
         self.name = name
@@ -266,7 +266,7 @@
         return 1
 
 
-class DummyTranslationDomain:
+class DummyTranslationDomain(object):
     implements(ITranslationDomain)
 
     domain = ''

Modified: Zope3/branches/ZopeX3-3.0/src/zope/tal/ndiff.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/tal/ndiff.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/tal/ndiff.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -123,7 +123,7 @@
 
 del re
 
-class SequenceMatcher:
+class SequenceMatcher(object):
     def __init__(self, isjunk=None, a='', b=''):
         # Members:
         # a

Modified: Zope3/branches/ZopeX3-3.0/src/zope/tal/taldefs.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/tal/taldefs.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/tal/taldefs.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -11,10 +11,10 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
+"""Common definitions used by TAL and METAL compilation and transformation.
+
+$Id$
 """
-Common definitions used by TAL and METAL compilation an transformation.
-"""
-
 import re
 from zope.tal.interfaces import ITALExpressionErrorInfo
 from zope.interface import implements
@@ -94,7 +94,7 @@
     pass
 
 
-class ErrorInfo:
+class ErrorInfo(object):
     implements(ITALExpressionErrorInfo)
 
     def __init__(self, err, position=(None, None)):

Modified: Zope3/branches/ZopeX3-3.0/src/zope/tal/talgenerator.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/tal/talgenerator.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/tal/talgenerator.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -31,7 +31,7 @@
 _name_rx = re.compile(NAME_RE)
 
 
-class TALGenerator:
+class TALGenerator(object):
 
     inMacroUse = 0
     inMacroDef = 0

Modified: Zope3/branches/ZopeX3-3.0/src/zope/tal/talgettext.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/tal/talgettext.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/tal/talgettext.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -250,7 +250,7 @@
         return
 
     # We don't care about the rendered output of the .pt file
-    class Devnull:
+    class Devnull(object):
         def write(self, s):
             pass
 

Modified: Zope3/branches/ZopeX3-3.0/src/zope/tal/talinterpreter.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/tal/talinterpreter.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/tal/talinterpreter.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -89,7 +89,7 @@
         return TALGenerator.replaceAttrs(self, attrlist, repldict)
 
 
-class TALInterpreter:
+class TALInterpreter(object):
 
     def __init__(self, program, macros, engine, stream=None,
                  debug=0, wrap=60, metal=1, tal=1, showtal=-1,

Modified: Zope3/branches/ZopeX3-3.0/src/zope/tal/tests/test_xmlparser.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/tal/tests/test_xmlparser.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/tal/tests/test_xmlparser.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -12,8 +12,10 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""Tests for XMLParser.py."""
+"""Tests for XMLParser.py.
 
+$Id$
+"""
 import sys
 import unittest
 
@@ -83,7 +85,7 @@
         self.append(("starttag_text", self.get_starttag_text()))
 
 
-class SegmentedFile:
+class SegmentedFile(object):
     def __init__(self, parts):
         self.parts = list(parts)
 

Modified: Zope3/branches/ZopeX3-3.0/src/zope/tal/translationcontext.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/tal/translationcontext.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/tal/translationcontext.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -18,10 +18,9 @@
 
 $Id$
 """
-
 DEFAULT_DOMAIN = "default"
 
-class TranslationContext:
+class TranslationContext(object):
     """Information about the I18N settings of a TAL processor."""
 
     def __init__(self, parent=None, domain=None, target=None, source=None):

Modified: Zope3/branches/ZopeX3-3.0/src/zope/tal/xmlparser.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/tal/xmlparser.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/tal/xmlparser.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -14,12 +14,13 @@
 """Generic Expat-based XML parser base class.
 
 This creates a parser with namespace processing enabled.
+
+$Id$
 """
-
 import logging
 
 
-class XMLParser:
+class XMLParser(object):
 
     ordered_attributes = 0
 

Modified: Zope3/branches/ZopeX3-3.0/src/zope/tales/pythonexpr.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/tales/pythonexpr.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/tales/pythonexpr.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -16,7 +16,7 @@
 $Id$
 """
 
-class PythonExpr:
+class PythonExpr(object):
     def __init__(self, name, expr, engine):
         text = '\n'.join(expr.splitlines()) # normalize line endings
         text = '(' + text + ')' # Put text in parens so newlines don't matter
@@ -64,7 +64,7 @@
         return '<PythonExpr %s>' % self.text
 
 
-class ExprTypeProxy:
+class ExprTypeProxy(object):
     '''Class that proxies access to an expression type handler'''
     def __init__(self, name, handler, econtext):
         self._name = name

Modified: Zope3/branches/ZopeX3-3.0/src/zope/tales/tales.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/tales/tales.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/tales/tales.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -538,7 +538,7 @@
 
         example:
 
-           class stringFuncs:
+           class stringFuncs(object):
 
               def __init__(self,context):
                  self.context = str(context)

Modified: Zope3/branches/ZopeX3-3.0/src/zope/tales/tests/simpleexpr.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/tales/tests/simpleexpr.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/tales/tests/simpleexpr.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -11,8 +11,12 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
+"""Simple TALES Expression
 
-class SimpleExpr:
+$Id$
+"""
+
+class SimpleExpr(object):
     '''Simple example of an expression type handler
 
     for testing

Modified: Zope3/branches/ZopeX3-3.0/src/zope/tales/tests/test_expressions.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/tales/tests/test_expressions.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/tales/tests/test_expressions.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -21,7 +21,7 @@
 from zope.tales.interfaces import ITALESFunctionNamespace
 from zope.interface import implements
 
-class Data:
+class Data(object):
 
     def __init__(self, **kw):
         self.__dict__.update(kw)
@@ -172,7 +172,7 @@
         ExpressionTestBase.setUp(self)
 
         # a test namespace
-        class TestNameSpace:
+        class TestNameSpace(object):
             implements(ITALESFunctionNamespace)
 
             def __init__(self, context):

Modified: Zope3/branches/ZopeX3-3.0/src/zope/tales/tests/test_tales.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/tales/tests/test_tales.py	2004-08-12 19:48:10 UTC (rev 27080)
+++ Zope3/branches/ZopeX3-3.0/src/zope/tales/tests/test_tales.py	2004-08-12 19:56:31 UTC (rev 27081)
@@ -11,6 +11,10 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
+"""TALES Tests
+
+$Id$
+"""
 import unittest
 
 from zope.tales import tales
@@ -127,7 +131,7 @@
         ctxt.endScope()
 
 
-class Harness:
+class Harness(object):
     def __init__(self, testcase):
         self._callstack = []
         self._testcase = testcase
@@ -142,7 +146,7 @@
     def __getattr__(self, name):
         return HarnessMethod(self, name)
 
-class HarnessMethod:
+class HarnessMethod(object):
 
     def __init__(self, harness, name):
         self._harness = harness



More information about the Zope3-Checkins mailing list