Mercurial > genshi > genshi-test
comparison doc/upgrade.txt @ 937:459e1fed2c92
Update upgrade documentation to refer to the development version and not the py3k branch.
author | hodgestar |
---|---|
date | Fri, 18 Mar 2011 09:51:59 +0000 |
parents | 47c83fbdf4d4 |
children |
comparison
equal
deleted
inserted
replaced
936:47c83fbdf4d4 | 937:459e1fed2c92 |
---|---|
5 | 5 |
6 .. contents:: Contents | 6 .. contents:: Contents |
7 :depth: 2 | 7 :depth: 2 |
8 .. sectnum:: | 8 .. sectnum:: |
9 | 9 |
10 ---------------------------------------------- | 10 ------------------------------------------------------ |
11 Upgrading from Genshi 0.6.x to the py3k branch | 11 Upgrading from Genshi 0.6.x to the development version |
12 ---------------------------------------------- | 12 ------------------------------------------------------ |
13 | 13 |
14 The most noticable API change in the Genshi py3k branch is that the | 14 The Genshi development version now supports both Python 2 and Python 3. |
15 | |
16 The most noticable API change in the Genshi development version is that the | |
15 default encoding in numerous places is now None (i.e. unicode) instead | 17 default encoding in numerous places is now None (i.e. unicode) instead |
16 of UTF-8. This change was made in order to ease the transition to Python 3 | 18 of UTF-8. This change was made in order to ease the transition to Python 3 |
17 where strings are unicode strings by default. | 19 where strings are unicode strings by default. |
18 | 20 |
19 If your application relies on the default UTF-8 encoding a simple way to | 21 If your application relies on the default UTF-8 encoding a simple way to |
20 have it work both with Genshi 0.6.x and the py3k branch is to specify the | 22 have it work both with Genshi 0.6.x and the development version is to specify the |
21 encoding explicitly in calls to the following classes, methods and functions: | 23 encoding explicitly in calls to the following classes, methods and functions: |
22 | 24 |
23 * genshi.HTML | 25 * genshi.HTML |
24 * genshi.Stream.render | 26 * genshi.Stream.render |
25 * genshi.input.HTMLParser | 27 * genshi.input.HTMLParser |