diff options
author | Tres Seaver <tseaver@palladion.com> | 2012-04-06 22:49:15 +0000 |
---|---|---|
committer | Tres Seaver <tseaver@palladion.com> | 2012-04-06 22:49:15 +0000 |
commit | 51f4a73ca1d4a57b5216f2db95bcf1185c59e93b (patch) | |
tree | 01ba519e8474b4f49ac336976d3daecedbe5f8c8 /src | |
parent | cafec8e412895af5f49ae95ba2b436d0d04b218d (diff) | |
download | zope-i18nmessageid-51f4a73ca1d4a57b5216f2db95bcf1185c59e93b.tar.gz |
Removed use of '2to3' and associated fixers when installing under Py3k.
The code is now in a "compatible subset" which supports Python 2.6, 2.7,
and 3.2, including PyPy 1.8 (the version compatible with the 2.7 language
spec).
Diffstat (limited to 'src')
-rw-r--r-- | src/zope/i18nmessageid/message.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/zope/i18nmessageid/message.py b/src/zope/i18nmessageid/message.py index 88eef4d..e46cad6 100644 --- a/src/zope/i18nmessageid/message.py +++ b/src/zope/i18nmessageid/message.py @@ -15,6 +15,12 @@ """ __docformat__ = "reStructuredText" +try: + unicode +except NameError: #pragma NO COVER Python3 + unicode = str + + class Message(unicode): """Message (Python implementation) |