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. --- template.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 template.py (limited to 'template.py') diff --git a/template.py b/template.py new file mode 100644 index 000000000..709f4f7c4 --- /dev/null +++ b/template.py @@ -0,0 +1,24 @@ +# Copyright (C) 2009 by the Free Software Foundation, Inc. +# +# This file is part of GNU Mailman. +# +# GNU Mailman is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free +# Software Foundation, either version 3 of the License, or (at your option) +# any later version. +# +# GNU Mailman is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +# more details. +# +# You should have received a copy of the GNU General Public License along with +# GNU Mailman. If not, see . + +"""Module stuff.""" + +from __future__ import absolute_import, unicode_literals + +__metaclass__ = type +__all__ = [ + ] -- cgit v1.2.3-70-g09d2