~barry/mailman/events-and-web

« back to all changes in this revision

Viewing changes to src/mailman/config/config.py

  • Committer: Barry Warsaw
  • Date: 2012-04-26 02:08:22 UTC
  • Revision ID: barry@list.org-20120426020822-g5shyz6tr3gwkmiw
General code cleanup.

 - Add explicit dependency on zope.event in setup.py.
 - Use Python 3 compatible syntax for specifying that a class implements an
   interface, i.e. the @implementer class decorator.
 - print_function futures.
 - Whitespace normalization.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
from pkg_resources import resource_stream
33
33
from string import Template
34
34
from zope.component import getUtility
35
 
from zope.interface import Interface, implements
 
35
from zope.interface import Interface, implementer
36
36
 
37
37
import mailman.templates
38
38
 
52
52
 
53
53
 
54
54
 
 
55
@implementer(IConfiguration)
55
56
class Configuration:
56
57
    """The core global configuration object."""
57
58
 
58
 
    implements(IConfiguration)
59
 
 
60
59
    def __init__(self):
61
60
        self.switchboards = {}
62
61
        self.QFILE_SCHEMA_VERSION = version.QFILE_SCHEMA_VERSION