Mercurial > genshi > genshi-test
annotate COPYING @ 917:bcaa91c42b97 experimental-py3k
add support for python 3 to genshi.template expression evaluator:
* add support for python 3 AST:
* AST for raise has changed in Python 3.
* Python 3 adds AST nodes for individual arguments and Bytes.
* use genshi.compat functions for dealing with code objects.
* do not coerce byte strings to unicode in Python 3 ASTTransformer.
* replace doctests that reply on exception names with uglier but more compatible try:.. except:.. doctest
* handle filename preferences of Python 2 and 3 (2 prefers bytes, 3 prefers unicode).
* ifilter is gone from itertools in Python 3 so use repeat for tests instead.
author | hodgestar |
---|---|
date | Sun, 24 Oct 2010 22:39:08 +0000 |
parents | 85e4678337cf |
children |
rev | line source |
---|---|
897 | 1 Copyright (C) 2006-2010 Edgewall Software |
26
039fc5b87405
* Split out the XPath tests into a separate `unittest`-based file.
cmlenz
parents:
diff
changeset
|
2 All rights reserved. |
039fc5b87405
* Split out the XPath tests into a separate `unittest`-based file.
cmlenz
parents:
diff
changeset
|
3 |
039fc5b87405
* Split out the XPath tests into a separate `unittest`-based file.
cmlenz
parents:
diff
changeset
|
4 Redistribution and use in source and binary forms, with or without |
039fc5b87405
* Split out the XPath tests into a separate `unittest`-based file.
cmlenz
parents:
diff
changeset
|
5 modification, are permitted provided that the following conditions |
039fc5b87405
* Split out the XPath tests into a separate `unittest`-based file.
cmlenz
parents:
diff
changeset
|
6 are met: |
039fc5b87405
* Split out the XPath tests into a separate `unittest`-based file.
cmlenz
parents:
diff
changeset
|
7 |
039fc5b87405
* Split out the XPath tests into a separate `unittest`-based file.
cmlenz
parents:
diff
changeset
|
8 1. Redistributions of source code must retain the above copyright |
039fc5b87405
* Split out the XPath tests into a separate `unittest`-based file.
cmlenz
parents:
diff
changeset
|
9 notice, this list of conditions and the following disclaimer. |
039fc5b87405
* Split out the XPath tests into a separate `unittest`-based file.
cmlenz
parents:
diff
changeset
|
10 2. Redistributions in binary form must reproduce the above copyright |
039fc5b87405
* Split out the XPath tests into a separate `unittest`-based file.
cmlenz
parents:
diff
changeset
|
11 notice, this list of conditions and the following disclaimer in |
039fc5b87405
* Split out the XPath tests into a separate `unittest`-based file.
cmlenz
parents:
diff
changeset
|
12 the documentation and/or other materials provided with the |
039fc5b87405
* Split out the XPath tests into a separate `unittest`-based file.
cmlenz
parents:
diff
changeset
|
13 distribution. |
039fc5b87405
* Split out the XPath tests into a separate `unittest`-based file.
cmlenz
parents:
diff
changeset
|
14 3. The name of the author may not be used to endorse or promote |
039fc5b87405
* Split out the XPath tests into a separate `unittest`-based file.
cmlenz
parents:
diff
changeset
|
15 products derived from this software without specific prior |
039fc5b87405
* Split out the XPath tests into a separate `unittest`-based file.
cmlenz
parents:
diff
changeset
|
16 written permission. |
039fc5b87405
* Split out the XPath tests into a separate `unittest`-based file.
cmlenz
parents:
diff
changeset
|
17 |
039fc5b87405
* Split out the XPath tests into a separate `unittest`-based file.
cmlenz
parents:
diff
changeset
|
18 THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS |
039fc5b87405
* Split out the XPath tests into a separate `unittest`-based file.
cmlenz
parents:
diff
changeset
|
19 OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
039fc5b87405
* Split out the XPath tests into a separate `unittest`-based file.
cmlenz
parents:
diff
changeset
|
20 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
039fc5b87405
* Split out the XPath tests into a separate `unittest`-based file.
cmlenz
parents:
diff
changeset
|
21 ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY |
039fc5b87405
* Split out the XPath tests into a separate `unittest`-based file.
cmlenz
parents:
diff
changeset
|
22 DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
039fc5b87405
* Split out the XPath tests into a separate `unittest`-based file.
cmlenz
parents:
diff
changeset
|
23 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE |
039fc5b87405
* Split out the XPath tests into a separate `unittest`-based file.
cmlenz
parents:
diff
changeset
|
24 GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
039fc5b87405
* Split out the XPath tests into a separate `unittest`-based file.
cmlenz
parents:
diff
changeset
|
25 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER |
039fc5b87405
* Split out the XPath tests into a separate `unittest`-based file.
cmlenz
parents:
diff
changeset
|
26 IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR |
039fc5b87405
* Split out the XPath tests into a separate `unittest`-based file.
cmlenz
parents:
diff
changeset
|
27 OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN |
039fc5b87405
* Split out the XPath tests into a separate `unittest`-based file.
cmlenz
parents:
diff
changeset
|
28 IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |