Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
doc/translator.py unified for Python 2.6+ and Python 3.0+
- Open() replaced by xopen() that internally uses the encoding argument only for Python 3. The earlier usage of the codecs module and of the prefixed unicode string literals was removed. - Some lists of prototypes were sorted to get the same translator report for different versions of Python. - The local dedent() definition was replaced by textwrap.dedent(). (The older versions of Python did not have the module.) - Tested on Windows for Python 2.6.0, 2.7.7, 3.0.1, and 3.4.1.
- Loading branch information
Showing
1 changed file
with
41 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters