From 355deb16027b509bc0475e71edc07e5feaa42dfe Mon Sep 17 00:00:00 2001 From: Mike Bayer <mike_mp@zzzcomputing.com> Date: Tue, 21 Nov 2006 01:22:51 +0000 Subject: [PATCH] copyright etc --- LICENSE | 20 ++++++++++++++++++++ examples/bench/basic.py | 30 ++++++++++++++++++++++++++++++ lib/mako/__init__.py | 6 ++++++ lib/mako/ast.py | 6 ++++++ lib/mako/codegen.py | 6 ++++++ lib/mako/exceptions.py | 6 ++++++ lib/mako/lexer.py | 6 ++++++ lib/mako/parsetree.py | 6 ++++++ lib/mako/pygen.py | 6 ++++++ lib/mako/runtime.py | 6 ++++++ lib/mako/template.py | 6 ++++++ lib/mako/util.py | 5 +++++ 12 files changed, 109 insertions(+) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..c501887 --- /dev/null +++ b/LICENSE @@ -0,0 +1,20 @@ +This is the MIT license: http://www.opensource.org/licenses/mit-license.php + +Copyright (c) 2006 Michael Bayer and contributors. Mako is a trademark of Michael +Bayer. + +Permission is hereby granted, free of charge, to any person obtaining a copy of this +software and associated documentation files (the "Software"), to deal in the Software +without restriction, including without limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons +to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or +substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, +INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE +FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/examples/bench/basic.py b/examples/bench/basic.py index 4072692..79f21b3 100644 --- a/examples/bench/basic.py +++ b/examples/bench/basic.py @@ -1,3 +1,33 @@ +# basic.py - basic benchmarks adapted from Genshi +# Copyright (C) 2006 Edgewall Software +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in +# the documentation and/or other materials provided with the +# distribution. +# 3. The name of the author may not be used to endorse or promote +# products derived from this software without specific prior +# written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS +# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + from cgi import escape import os from StringIO import StringIO diff --git a/lib/mako/__init__.py b/lib/mako/__init__.py index e69de29..2864e59 100644 --- a/lib/mako/__init__.py +++ b/lib/mako/__init__.py @@ -0,0 +1,6 @@ +# __init__.py +# Copyright (C) 2006 Michael Bayer mike_mp@zzzcomputing.com +# +# This module is part of Mako and is released under +# the MIT License: http://www.opensource.org/licenses/mit-license.php + diff --git a/lib/mako/ast.py b/lib/mako/ast.py index 8c53140..1542f8d 100644 --- a/lib/mako/ast.py +++ b/lib/mako/ast.py @@ -1,3 +1,9 @@ +# ast.py +# Copyright (C) 2006 Michael Bayer mike_mp@zzzcomputing.com +# +# This module is part of Mako and is released under +# the MIT License: http://www.opensource.org/licenses/mit-license.php + """utilities for analyzing expressions and blocks of Python code, as well as generating Python from AST nodes""" from compiler import ast, parse, visitor diff --git a/lib/mako/codegen.py b/lib/mako/codegen.py index 900a0e5..56b0048 100644 --- a/lib/mako/codegen.py +++ b/lib/mako/codegen.py @@ -1,3 +1,9 @@ +# codegen.py +# Copyright (C) 2006 Michael Bayer mike_mp@zzzcomputing.com +# +# This module is part of Mako and is released under +# the MIT License: http://www.opensource.org/licenses/mit-license.php + """provides the Compiler object for generating module source code.""" import time diff --git a/lib/mako/exceptions.py b/lib/mako/exceptions.py index eea5003..a2bc255 100644 --- a/lib/mako/exceptions.py +++ b/lib/mako/exceptions.py @@ -1,3 +1,9 @@ +# exceptions.py +# Copyright (C) 2006 Michael Bayer mike_mp@zzzcomputing.com +# +# This module is part of Mako and is released under +# the MIT License: http://www.opensource.org/licenses/mit-license.php + """exception classes""" class MakoException(Exception): diff --git a/lib/mako/lexer.py b/lib/mako/lexer.py index 2cae847..225261c 100644 --- a/lib/mako/lexer.py +++ b/lib/mako/lexer.py @@ -1,3 +1,9 @@ +# lexer.py +# Copyright (C) 2006 Michael Bayer mike_mp@zzzcomputing.com +# +# This module is part of Mako and is released under +# the MIT License: http://www.opensource.org/licenses/mit-license.php + """provides the Lexer class for parsing template strings into parse trees.""" import re diff --git a/lib/mako/parsetree.py b/lib/mako/parsetree.py index 9c42625..5f49ae7 100644 --- a/lib/mako/parsetree.py +++ b/lib/mako/parsetree.py @@ -1,3 +1,9 @@ +# parsetree.py +# Copyright (C) 2006 Michael Bayer mike_mp@zzzcomputing.com +# +# This module is part of Mako and is released under +# the MIT License: http://www.opensource.org/licenses/mit-license.php + """defines the parse tree components for Mako templates.""" from mako import exceptions, ast, util diff --git a/lib/mako/pygen.py b/lib/mako/pygen.py index 8254396..fc7ba3b 100644 --- a/lib/mako/pygen.py +++ b/lib/mako/pygen.py @@ -1,3 +1,9 @@ +# pygen.py +# Copyright (C) 2006 Michael Bayer mike_mp@zzzcomputing.com +# +# This module is part of Mako and is released under +# the MIT License: http://www.opensource.org/licenses/mit-license.php + """utilities for generating and formatting literal Python code.""" import re, string diff --git a/lib/mako/runtime.py b/lib/mako/runtime.py index 6c573f6..d051861 100644 --- a/lib/mako/runtime.py +++ b/lib/mako/runtime.py @@ -1,3 +1,9 @@ +# runtime.py +# Copyright (C) 2006 Michael Bayer mike_mp@zzzcomputing.com +# +# This module is part of Mako and is released under +# the MIT License: http://www.opensource.org/licenses/mit-license.php + """provides the Context class, the runtime namespace for templates.""" from mako import exceptions diff --git a/lib/mako/template.py b/lib/mako/template.py index 46f24cd..562495d 100644 --- a/lib/mako/template.py +++ b/lib/mako/template.py @@ -1,3 +1,9 @@ +# template.py +# Copyright (C) 2006 Michael Bayer mike_mp@zzzcomputing.com +# +# This module is part of Mako and is released under +# the MIT License: http://www.opensource.org/licenses/mit-license.php + """provides the Template class, a facade for parsing, generating and executing template strings, as well as template runtime operations.""" diff --git a/lib/mako/util.py b/lib/mako/util.py index 9f63825..1d665fd 100644 --- a/lib/mako/util.py +++ b/lib/mako/util.py @@ -1,3 +1,8 @@ +# util.py +# Copyright (C) 2006 Michael Bayer mike_mp@zzzcomputing.com +# +# This module is part of Mako and is released under +# the MIT License: http://www.opensource.org/licenses/mit-license.php try: Set = set -- GitLab