From ae3d0cc316b826b8325507d960ccf84da601c3b0 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Fri, 16 Jan 2009 21:04:21 -0500 Subject: Several important cleanups. * Turn on absolute_import and unicode_literals everywhere, and deal with the aftermath. * Use 'except X as Y' everywhere. * Make the module prologues much more consistent. * Use '{}'.format() consistently, except for logger interface. * Because of the problems with calling ** args with unicode keywords, hide calls to Template.substitute() behind an API. --- mailman/rules/max_size.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'mailman/rules/max_size.py') diff --git a/mailman/rules/max_size.py b/mailman/rules/max_size.py index 1ce280e88..bac79bbab 100644 --- a/mailman/rules/max_size.py +++ b/mailman/rules/max_size.py @@ -17,8 +17,12 @@ """The maximum message size rule.""" -__all__ = ['MaximumSize'] +from __future__ import absolute_import, unicode_literals + __metaclass__ = type +__all__ = [ + 'MaximumSize', + ] from zope.interface import implements -- cgit v1.2.3-70-g09d2